Debug quit() command

This commit is contained in:
Loic Guegan 2022-02-27 19:51:48 +01:00
parent 7be95e7bcd
commit e5e8205758

View file

@ -238,7 +238,8 @@ void UCI::debug(bool d) {
} }
void UCI::ponderhit() { Command("ponderhit"); } void UCI::ponderhit() { Command("ponderhit"); }
void UCI::quit() { void UCI::quit() {
p->Write(cmd + "\n"); // Note that we should no do a sync! // Note that calling Command() will fail (because of Sync())
p->Write("quit\n");
} }
void UCI::ucinewgame() { Command("ucinewgame"); } void UCI::ucinewgame() { Command("ucinewgame"); }
void UCI::position(std::string fen, std::string moves) { void UCI::position(std::string fen, std::string moves) {