diff --git a/src/Command/StartCommand.php b/src/Command/StartCommand.php index 3b929ed3..36bfa9d7 100644 --- a/src/Command/StartCommand.php +++ b/src/Command/StartCommand.php @@ -312,7 +312,7 @@ public function run(ChesslaBlabSocket $socket, array $argv, int $id) $board = (new ClassicalFenStrToBoard($settings->fen))->create(); $game = (new Game($argv[1], $argv[2]))->setBoard($board); } else { - $game = new Game($argv[1], $argv[2], $socket->getGmComputer()); + $game = new Game($argv[1], $argv[2], $socket->getGmMove()); } $stockfishMode = new StockfishMode($game, [$id]); $socket->getGameModeStorage()->set($stockfishMode); diff --git a/src/Socket/ChesslaBlabSocket.php b/src/Socket/ChesslaBlabSocket.php index 8fb6d7f9..ec8fa391 100644 --- a/src/Socket/ChesslaBlabSocket.php +++ b/src/Socket/ChesslaBlabSocket.php @@ -67,11 +67,11 @@ public function init(ClientStorageInterface $clientStorage): ChesslaBlabSocket } /** - * Returns the grandmaster computer. + * Returns the grandmaster move. * * @return string */ - public function getGmComputer(): GrandmasterMove + public function getGmMove(): GrandmasterMove { return $this->gmMove; }