fixed pickle recursion depth error and updated depth of nodes recursively in apply_move

This commit is contained in:
2024-01-29 19:25:35 +01:00
parent d43899ecda
commit b9761e1e2b
5 changed files with 21 additions and 9 deletions

View File

@@ -51,6 +51,13 @@ class IMctsNode(ABC):
"""
pass
def update_depth(self, depth: int) -> None:
"""
Recursively updates the depth the current node and all it's children
:param depth: new depth for current node
:return:
"""
class IMcts(ABC):
def __init__(self, board: chess.Board, strategy: IStrategy, seed: int | None):