Remove redundant initial state in sims
This commit is contained in:
+3
-3
@@ -116,7 +116,7 @@ public sealed class Solver : IDisposable
|
||||
var bestSims = new List<(float Score, SolverSolution Result)>();
|
||||
|
||||
var state = State;
|
||||
var sim = new Simulator(state, Config.MaxStepCount);
|
||||
var sim = new Simulator(Config.MaxStepCount);
|
||||
|
||||
var activeStates = new List<SolverSolution>() { new(Array.Empty<ActionType>(), state) };
|
||||
|
||||
@@ -240,7 +240,7 @@ public sealed class Solver : IDisposable
|
||||
{
|
||||
var actions = new List<ActionType>();
|
||||
var state = State;
|
||||
var sim = new Simulator(state, Config.MaxStepCount);
|
||||
var sim = new Simulator(Config.MaxStepCount);
|
||||
while (true)
|
||||
{
|
||||
Token.ThrowIfCancellationRequested();
|
||||
@@ -303,7 +303,7 @@ public sealed class Solver : IDisposable
|
||||
{
|
||||
var actions = new List<ActionType>();
|
||||
var state = State;
|
||||
var sim = new Simulator(state, Config.MaxStepCount);
|
||||
var sim = new Simulator(Config.MaxStepCount);
|
||||
while (true)
|
||||
{
|
||||
Token.ThrowIfCancellationRequested();
|
||||
|
||||
Reference in New Issue
Block a user