File size: 416 Bytes
e3868b1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from abc import ABC

import chess.pgn


class BaseAgent(ABC):
    def __init__(self, is_white: bool) -> None:
        self.is_white = is_white

    def next_move(self, board: chess.Board) -> chess.Move:
        pass

    def evaluate_board(self, board: chess.Board) -> float:
        pass

    def set_color(self, is_white: bool) -> None:
        self.is_white = is_white

    def __str__(self) -> str:
        pass