Update MCTS to change color for children

This commit is contained in:
2024-01-31 17:39:08 +01:00
parent b6bb61ec45
commit 793d83b943
3 changed files with 9 additions and 9 deletions

View File

@@ -6,6 +6,7 @@ import chess
from chesspp.i_strategy import IStrategy
class IMctsNode(ABC):
def __init__(self, board: chess.Board, strategy: IStrategy, parent: Self | None, move: chess.Move | None,
random_state: random.Random):
@@ -16,7 +17,6 @@ class IMctsNode(ABC):
self.move = move
self.legal_moves = list(board.legal_moves)
self.random_state = random_state
self.depth = 0
@abstractmethod
def select(self) -> Self: