Skip to content

Commit

Permalink
Renamed getGmComputer() as getGmMove()
Browse files Browse the repository at this point in the history
  • Loading branch information
programarivm committed Apr 29, 2024
1 parent 75008f1 commit 22b357e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Command/StartCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/Socket/ChesslaBlabSocket.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 22b357e

Please sign in to comment.