Adding remove command xboard sends with CTRL+X, only sent when player's turn, go back two moves to players previous turn. Allows player to go back and try different moves without engine stopping like undo, see https://www.gnu.org/software/xboard/engine-intf.html#8 for differences between undo and remove.
go(analysisLimits);
}
}
+ else if (token == "remove")
+ {
+ stop();
+ if (moveList.size())
+ {
+ undo_move();
+ undo_move();
+ if (Options["UCI_AnalyseMode"])
+ go(analysisLimits);
+ }
+ }
// Bughouse commands
else if (token == "partner")
Partner.parse_partner(is);
} // namespace XBoard
-} // namespace Stockfish
\ No newline at end of file
+} // namespace Stockfish