Split solver into MCTS and algorithms

This commit is contained in:
Asriel Camora
2023-10-02 13:07:06 -07:00
parent e6081f5e60
commit c0f579f23b
12 changed files with 444 additions and 406 deletions
-19
View File
@@ -15,25 +15,6 @@ public class Macro
public List<ActionType> Actions { get; set; } = new();
}
public static class AlgorithmUtils
{
public static void Invoke(this SolverConfig me, SimulationState state, Action<ActionType>? actionCallback = null, CancellationToken token = default)
{
try
{
Solver.Solver.Search(me, state, actionCallback, token);
}
catch (AggregateException e)
{
e.Handle(ex => ex is OperationCanceledException);
}
catch (OperationCanceledException)
{
}
}
}
[Serializable]
public class Configuration : IPluginConfiguration
{