123456789101112131415 |
- import numpy as np
- class Board:
- _board: np.ndarray
- def __init__(self, size):
- self.size = size
- self._board = np.zeros((self.size, self.size))
- def set_initial(self, new_board):
- self._board = np.array(new_board)
- def solve(self):
- return [self._board.tolist()]
|