Fixed engines board init and classic mcts score function

This commit is contained in:
Theo Haslinger
2024-01-31 22:43:15 +01:00
parent c4d56f52a4
commit 628c8f2240
3 changed files with 19 additions and 14 deletions

View File

@@ -97,8 +97,8 @@ class BayesianMctsNode(IMctsNode):
copied_board.push(m)
steps += 1
steps = max(1, steps)
score = int(self.strategy.analyze_board(copied_board) / (math.log2(steps) + 1))
steps = max(2, steps)
score = int(self.strategy.analyze_board(copied_board) / math.log2(steps))
self.result = score
return score