Skip to content

Commit

Permalink
Updated to PHP Chess 1.3.56
Browse files Browse the repository at this point in the history
  • Loading branch information
programarivm committed Nov 15, 2023
1 parent 8106dd6 commit 1cc5d7b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Game/AbstractMode.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace ChessServer\Game;

use Chess\EvalFunction;
use Chess\FenToBoard;
use Chess\HeuristicsByFen;
use Chess\Movetext\NagMovetext;
Expand Down Expand Up @@ -63,11 +64,11 @@ public function res($argv, $cmd)
try {
switch (get_class($cmd)) {
case HeuristicsCommand::class:
$heuristics = new HeuristicsByFen($argv[1], $argv[2]);
return [
$cmd->name => [
'evalNames' => $heuristics->getEvalNames(),
'balance' => $heuristics->getBalance(),
'evalNames' => (new EvalFunction())->names(),
'balance' => (new HeuristicsByFen($argv[1], $argv[2]))
->getBalance(),
],
];
case LegalCommand::class:
Expand Down

0 comments on commit 1cc5d7b

Please sign in to comment.