mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 10:38:13 +00:00
Chess: Send a quit command to ChessEngine when it is no longer in use
The chess GUI now instructs the ChessEngine to gracefully exit by sending a UCI quit command.
This commit is contained in:
parent
c2b9376409
commit
bf320e4826
2 changed files with 8 additions and 3 deletions
|
@ -33,6 +33,7 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
void quit();
|
||||
|
||||
Function<void(Chess::Move)> m_bestmove_callback;
|
||||
pid_t m_pid { -1 };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue