diff --git a/src/Command/Game/Blocking/HeuristicCommand.php b/src/Command/Game/Blocking/PlotCommand.php similarity index 75% rename from src/Command/Game/Blocking/HeuristicCommand.php rename to src/Command/Game/Blocking/PlotCommand.php index 46920ce9..63eea5fa 100644 --- a/src/Command/Game/Blocking/HeuristicCommand.php +++ b/src/Command/Game/Blocking/PlotCommand.php @@ -5,12 +5,12 @@ use ChessServer\Command\AbstractBlockingCommand; use ChessServer\Socket\AbstractSocket; -class HeuristicCommand extends AbstractBlockingCommand +class PlotCommand extends AbstractBlockingCommand { public function __construct() { - $this->name = '/heuristic'; - $this->description = 'Balance of a chess heuristic.'; + $this->name = '/plot'; + $this->description = 'Plots the oscillations of an evaluation feature in the time domain.'; $this->params = [ 'params' => '', ]; @@ -25,7 +25,7 @@ public function run(AbstractSocket $socket, array $argv, int $id) { $params = $this->params($argv[1]); - $this->pool->add(new HeuristicTask($params)) + $this->pool->add(new PlotTask($params)) ->then(function ($result) use ($socket, $id) { return $socket->getClientStorage()->send([$id], [ $this->name => $result, diff --git a/src/Command/Game/Blocking/HeuristicTask.php b/src/Command/Game/Blocking/PlotTask.php similarity index 97% rename from src/Command/Game/Blocking/HeuristicTask.php rename to src/Command/Game/Blocking/PlotTask.php index 88cf7087..53f92c45 100644 --- a/src/Command/Game/Blocking/HeuristicTask.php +++ b/src/Command/Game/Blocking/PlotTask.php @@ -12,7 +12,7 @@ use Chess\Variant\Classical\Board as ClassicalBoard; use ChessServer\Command\AbstractBlockingTask; -class HeuristicTask extends AbstractBlockingTask +class PlotTask extends AbstractBlockingTask { public function run() { diff --git a/src/Command/Game/Cli.php b/src/Command/Game/Cli.php index 14cd6849..0a9c2700 100644 --- a/src/Command/Game/Cli.php +++ b/src/Command/Game/Cli.php @@ -4,7 +4,7 @@ use ChessServer\Command\AbstractCli; use ChessServer\Command\Game\Blocking\ExtractCommand; -use ChessServer\Command\Game\Blocking\HeuristicCommand; +use ChessServer\Command\Game\Blocking\PlotCommand; use ChessServer\Command\Game\Blocking\LeaveCommand; use ChessServer\Command\Game\Blocking\PlayCommand; use ChessServer\Command\Game\Blocking\PlayLanCommand; @@ -45,7 +45,7 @@ public function __construct(Pool $pool) // param-based commands $this->commands->attach(new AcceptPlayRequestCommand()); $this->commands->attach((new ExtractCommand())->setPool($pool)); - $this->commands->attach((new HeuristicCommand())->setPool($pool)); + $this->commands->attach((new PlotCommand())->setPool($pool)); $this->commands->attach((new LeaveCommand())->setPool($pool)); $this->commands->attach(new LegalCommand()); $this->commands->attach((new PlayCommand())->setPool($pool));