From: H.G.Muller Date: Sat, 20 Dec 2025 12:40:08 +0000 (+0100) Subject: Fix CECP notation for Fischer castling X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=refs%2Fheads%2Fhgm;p=fairystockfish.git Fix CECP notation for Fischer castling FSF was using UCI's KxR notation even in CECP, where it has to be O-O(-O). --- diff --git a/src/uci.cpp b/src/uci.cpp index 584977a..fa916ae 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -534,6 +534,8 @@ string UCI::move(const Position& pos, Move m) { string move = (type_of(m) == DROP ? UCI::dropped_piece(pos, m) + (CurrentProtocol == USI ? '*' : '@') : UCI::square(pos, from)) + UCI::square(pos, to); + if(CurrentProtocol == XBOARD && type_of(m) == CASTLING && pos.is_chess960()) move = to > from ? "O-O" : "O-O-O"; + // Wall square if (pos.walling() && CurrentProtocol == XBOARD) move += "," + UCI::square(pos, to) + UCI::square(pos, gating_square(m));