X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fuci.cpp;h=d3d99243b0937deb39cb8fae5fee5e3e75e9e160;hb=515b66f18833ed87e97313d2ec4dfa4e2329d3df;hp=3883b3d370769a9d6469a7fef9b3842f71871c64;hpb=f0556dcbe3ba2fc804ab26d4552446602a75f064;p=stockfish diff --git a/src/uci.cpp b/src/uci.cpp index 3883b3d3..d3d99243 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -358,15 +358,15 @@ std::string UCI::square(Square s) { string UCI::move(Move m, bool chess960) { - Square from = from_sq(m); - Square to = to_sq(m); - if (m == MOVE_NONE) return "(none)"; if (m == MOVE_NULL) return "0000"; + Square from = from_sq(m); + Square to = to_sq(m); + if (type_of(m) == CASTLING && !chess960) to = make_square(to > from ? FILE_G : FILE_C, rank_of(from));