Re enable random actions

This commit is contained in:
Asriel Camora
2023-06-21 11:42:22 -07:00
parent f3445f3cb9
commit 0f2267dabf
3 changed files with 22 additions and 24 deletions
+7 -2
View File
@@ -31,12 +31,17 @@ internal static class Program
}
);
var config = new SolverConfig()
{
Iterations = 1_000_000
};
var s = Stopwatch.StartNew();
if (true)
_ = Solver.Crafty.Solver.SearchStepwise(new(), input, a => Console.WriteLine(a));
_ = Solver.Crafty.Solver.SearchStepwise(config, input, a => Console.WriteLine(a));
else
{
(var actions, _) = Solver.Crafty.Solver.SearchOneshot(new(), input);
(var actions, _) = Solver.Crafty.Solver.SearchOneshot(config, input);
foreach (var action in actions)
Console.Write($">{action.IntName()}");
Console.WriteLine();