1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 17:47:36 +00:00

LibChess: Add the ucinewgame command

This command is sent from the GUI to tell the engine that the next
position will be from a different game.
This commit is contained in:
Tim Ledbetter 2023-04-26 19:00:48 +01:00 committed by Andreas Kling
parent 7e6341587b
commit 18735960de
4 changed files with 30 additions and 0 deletions

View file

@ -281,4 +281,16 @@ public:
virtual ErrorOr<String> to_string() const override;
};
class UCINewGameCommand : public Command {
public:
explicit UCINewGameCommand()
: Command(Command::Type::UCINewGame)
{
}
static ErrorOr<NonnullOwnPtr<UCINewGameCommand>> from_string(StringView command);
virtual ErrorOr<String> to_string() const override;
};
}