From 7a6cfb91fef41a88544654ce24ecad0505240d22 Mon Sep 17 00:00:00 2001 From: Fabian Fichter Date: Wed, 28 Oct 2020 18:33:00 +0100 Subject: [PATCH] Change CECP pass move to "@@@@" --- src/uci.cpp | 2 +- src/xboard.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uci.cpp b/src/uci.cpp index 1439222..6efc649 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -443,7 +443,7 @@ string UCI::move(const Position& pos, Move m) { return "0000"; if (is_pass(m) && Options["Protocol"] == "xboard") - return "pass"; + return "@@@@"; if (is_gating(m) && gating_square(m) == to) from = to_sq(m), to = from_sq(m); diff --git a/src/xboard.cpp b/src/xboard.cpp index a62d709..51b296d 100644 --- a/src/xboard.cpp +++ b/src/xboard.cpp @@ -251,7 +251,7 @@ void StateMachine::process_command(Position& pos, std::string token, std::istrin Position p; p.set(pos.variant(), fen, pos.is_chess960(), &st, pos.this_thread()); Move m; - std::string passMove = "pass"; + std::string passMove = "@@@@"; if ((m = UCI::to_move(pos, passMove)) != MOVE_NONE) do_move(pos, moveList, states, m); // apply setboard if passing does not lead to a match -- 1.7.0.4