1
Fork 0
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:
Sam Atkins 2023-04-21 15:17:33 +01:00 committed by Andreas Kling
parent 6576bbc098
commit 29c41e953b
4 changed files with 101 additions and 98 deletions

View file

@ -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());
}