daily pastebin goal
5%
SHARE
TWEET

Untitled

a guest Sep 13th, 2017 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if y == "n" and board[moveX-1][moveY] == "." and moveX-1 >= 0:
  2.         board[moveX-1][moveY] = x
  3.         board[moveX][moveY] = "."
  4.         return board
  5.     elif y == "e" and board[moveX][moveY+1] == "." and moveY+1 >= 0:
  6.         board[moveX][moveY+1] = x
  7.         board[moveX][moveY] = "."
  8.         return board
  9.     elif y == "s" and board[moveX+1][moveY] == "." and moveX-1 >= 0:
  10.         board[moveX-1][moveY] = x
  11.         board[moveX][moveY] = "."
  12.         return board
  13.     elif y == "w" and board[moveX][moveY-1] == "." and moveY-1 >= 0:
  14.         board[moveX][moveY-1] = x
  15.         board[moveX][moveY] = "."
  16.         return board
RAW Paste Data
Top