diff --git a/src/Command/Game/Async/HeuristicTask.php b/src/Command/Game/Async/HeuristicTask.php index 7b50d463..5cb3238d 100644 --- a/src/Command/Game/Async/HeuristicTask.php +++ b/src/Command/Game/Async/HeuristicTask.php @@ -35,12 +35,12 @@ public function run() : new ClassicalBoard(); } - $time = (new SanPlotter( + $time = SanPlotter::time( new CompleteFunction(), + $board, $this->params['movetext'], - $this->params['name'], - $board - ))->time; + $this->params['name'] + ); return $time; }