Changes by dreistein

This commit is contained in:
2024-01-27 17:31:42 +01:00
parent 42fbf374c6
commit c5dccf6c11
2 changed files with 17 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
import chess
from abc import ABC, abstractmethod
from i_strategy import IStrategy
from typing import Dict
class IMcts(ABC):
@@ -33,3 +34,18 @@ class IMcts(ABC):
:return: list of immediate children of mcts root
"""
pass
@abstractmethod
def get_moves(self) -> Dict[chess.Move, int]:
"""
Return all legal moves from this node with respective scores
:return: dictionary with moves as key and scores as values
"""
pass
"""
TODO: add score class:
how many moves until the end of the game?
score ranges?
perspective of white/black
"""

View File

@@ -1,5 +1,6 @@
import chess
import chess.engine
import chess.pgn
from classic_mcts import ClassicMcts
import engine
import eval