def on_board(self, x, y):
return (x >= 0 and x < w) and (y >= 0 and y < h)
def on_board(self, x, y):
return (x >= 0 and x < w) and (y >= 0 and y < h)
# Pushes a move temporarily
def push_move(self, piece, x, y):
target = self.grid[x][y]
# Pushes a move temporarily
def push_move(self, piece, x, y):
target = self.grid[x][y]