mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:47:34 +00:00
LibChess: Convert Commands to use String and propagate errors
This commit is contained in:
parent
6576bbc098
commit
29c41e953b
4 changed files with 101 additions and 98 deletions
|
@ -14,8 +14,8 @@ using namespace Chess::UCI;
|
|||
|
||||
void ChessEngine::handle_uci()
|
||||
{
|
||||
send_command(IdCommand(IdCommand::Type::Name, "ChessEngine"sv));
|
||||
send_command(IdCommand(IdCommand::Type::Author, "the SerenityOS developers"sv));
|
||||
send_command(IdCommand(IdCommand::Type::Name, "ChessEngine"_string.release_value_but_fixme_should_propagate_errors()));
|
||||
send_command(IdCommand(IdCommand::Type::Author, "the SerenityOS developers"_string.release_value_but_fixme_should_propagate_errors()));
|
||||
send_command(UCIOkCommand());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue