Change CECP pass move to "@@@@"
authorFabian Fichter <ianfab@users.noreply.github.com>
Wed, 28 Oct 2020 17:33:00 +0000 (18:33 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Wed, 28 Oct 2020 17:33:00 +0000 (18:33 +0100)
src/uci.cpp
src/xboard.cpp

index 1439222..6efc649 100644 (file)
@@ -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);
index a62d709..51b296d 100644 (file)
@@ -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