added reuse of subtree for simulations (apply_move), played around with rollout depth

This commit is contained in:
2024-01-29 12:26:19 +01:00
parent a2cb3a5719
commit f1a36964df
7 changed files with 80 additions and 42 deletions

View File

@@ -35,7 +35,7 @@ class ClassicMcts:
self.children.append(child_node)
return child_node
def _rollout(self, rollout_depth: int = 20) -> int:
def _rollout(self, rollout_depth: int = 3) -> int:
"""
Rolls out the node by simulating a game for a given depth.
Sometimes this step is called 'simulation' or 'playout'.