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:
parent
7e6341587b
commit
18735960de
4 changed files with 30 additions and 0 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue