Add ability to set initialized sim state if needed

This commit is contained in:
Asriel Camora
2023-11-13 23:15:18 -08:00
parent b9c871f2b2
commit 980613970c
5 changed files with 28 additions and 24 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ public sealed class MCTS
public MCTS(in MCTSConfig config, in SimulationState state)
{
this.config = config;
var sim = new Simulator(config.MaxStepCount);
var sim = new Simulator(config.MaxStepCount) { State = state };
rootNode = new(new(
state,
null,