X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fuci.cpp;h=8f9684ee26566ea9a00e5278803b32b8eca1d44b;hb=af4b62a593cc4fa6d7d34110c41301028a5c9695;hp=3883b3d370769a9d6469a7fef9b3842f71871c64;hpb=3589bd008a3470336b3587e3a292a4cd6b02bf6b;p=stockfish diff --git a/src/uci.cpp b/src/uci.cpp index 3883b3d3..8f9684ee 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -32,6 +32,7 @@ #include "tt.h" #include "uci.h" #include "syzygy/tbprobe.h" +#include "nnue/evaluate_nnue.h" using namespace std; @@ -358,15 +359,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));