// a = raw_input()
z,x,y = [int(x) for x in a.split(" ")]
boardvalues = np.arange(0,27).reshape(3,3,3)
a = boardvalues[z][x][y]
if valid[a]:
break
After Change
def play(self, board):
boardvalues = np.arange(self.n*self.n*self.n).reshape(self.n,self.n,self.n)
validvalue = np.arange(self.n*self.n*self.n)
// display(board)
valid = self.game.getValidMoves(board, 1)
for i in range(len(valid)):
if valid[i] == 1: