Skip to content

Commit

Permalink
Updated to PHP Chess 1.4.18
Browse files Browse the repository at this point in the history
  • Loading branch information
programarivm committed Apr 28, 2024
1 parent 1347f12 commit a33c839
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Game/AbstractMode.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Chess\Function\StandardFunction;
use Chess\Heuristics\FenHeuristics;
use Chess\Movetext\NagMovetext;
use Chess\Tutor\FenExplanation;
use Chess\Tutor\FenEvaluation;
use Chess\Variant\Capablanca\Board as CapablancaBoard;
use Chess\Variant\Chess960\Board as Chess960Board;
use Chess\Variant\Classical\Board as ClassicalBoard;
Expand Down Expand Up @@ -120,7 +120,7 @@ public function res($argv, $cmd)
} else {
$board = FenToBoardFactory::create($argv[1], new ClassicalBoard());
}
$paragraph = (new FenExplanation($board, $isEvaluated = true))->getParagraph();
$paragraph = (new FenEvaluation($board))->getParagraph();
return [
$cmd->name => implode(' ', $paragraph),
];
Expand Down

0 comments on commit a33c839

Please sign in to comment.