ohno.py 309 B

123456789101112131415
  1. import numpy as np
  2. class Board:
  3. _board: np.ndarray
  4. def __init__(self, size):
  5. self.size = size
  6. self._board = np.zeros((self.size, self.size))
  7. def set_initial(self, new_board):
  8. self._board = np.array(new_board)
  9. def solve(self):
  10. return [self._board.tolist()]