Skip to content

Commit

Permalink
Merge pull request #451 from chesslablab/issue/434-Rename-the-randomi…
Browse files Browse the repository at this point in the history
…zer-command-as-randomize

Renamed RandomizerCommand as RandomizeCommand
  • Loading branch information
programarivm authored Feb 7, 2025
2 parents 8ceecee + 9854a9a commit d8edda8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Command/Game/Cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
use ChessServer\Command\Game\NonBlocking\EvalNamesCommand;
use ChessServer\Command\Game\NonBlocking\LegalCommand;
use ChessServer\Command\Game\NonBlocking\OnlineGamesCommand;
use ChessServer\Command\Game\NonBlocking\RandomizerCommand;
use ChessServer\Command\Game\NonBlocking\RandomizeCommand;
use ChessServer\Command\Game\NonBlocking\RematchCommand;
use ChessServer\Command\Game\NonBlocking\StartCommand;
use ChessServer\Command\Game\NonBlocking\TakebackCommand;
Expand Down Expand Up @@ -52,7 +52,7 @@ public function __construct(Pool $pool)
$this->commands->attach((new PlayLanCommand())->setPool($pool));
$this->commands->attach((new PlayRavCommand())->setPool($pool));
$this->commands->attach((new PlotCommand())->setPool($pool));
$this->commands->attach(new RandomizerCommand());
$this->commands->attach(new RandomizeCommand());
$this->commands->attach((new RecognizeCommand())->setPool($pool));
$this->commands->attach((new ResignCommand())->setPool($pool));
$this->commands->attach((new RestartCommand())->setPool($pool));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use ChessServer\Command\AbstractNonBlockingCommand;
use ChessServer\Socket\AbstractSocket;

class RandomizerCommand extends AbstractNonBlockingCommand
class RandomizeCommand extends AbstractNonBlockingCommand
{
const TYPE_P = 'P';
const TYPE_Q = 'Q';
Expand All @@ -20,7 +20,7 @@ class RandomizerCommand extends AbstractNonBlockingCommand

public function __construct()
{
$this->name = '/randomizer';
$this->name = '/randomize';
$this->description = 'Starts a random position.';
$this->params = [
'params' => '<string>',
Expand Down

0 comments on commit d8edda8

Please sign in to comment.