mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 08:47:35 +00:00
LibChess: Add the UCI quit command
This commit is contained in:
parent
d2f9645cc0
commit
13dbc69c23
4 changed files with 30 additions and 0 deletions
|
@ -333,4 +333,17 @@ DeprecatedString InfoCommand::to_deprecated_string() const
|
|||
return "info";
|
||||
}
|
||||
|
||||
QuitCommand QuitCommand::from_string([[maybe_unused]] StringView command)
|
||||
{
|
||||
auto tokens = command.split_view(' ');
|
||||
VERIFY(tokens[0] == "quit");
|
||||
VERIFY(tokens.size() == 1);
|
||||
return QuitCommand();
|
||||
}
|
||||
|
||||
DeprecatedString QuitCommand::to_deprecated_string() const
|
||||
{
|
||||
return "quit\n";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue