Exemplo n.º 1
0
    def create_board(self):
        board = Board()

        for x in range(self._board_size):
            for y in range(self._board_size):
                if self.get_stone(x, y, 1) == 1:
                    board.set_stone(x, y, 1)
                elif self.get_stone(x, y, 2) == 1:
                    board.set_stone(x, y, 2)
                if self.is_puttable(x, y):
                    board.append_puttable(x, y)

        return board