X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmove.cpp;h=3c906b2a7d06b9fda1559e597a31ed9baf5c6bc6;hb=ae2f5f25cd8a6bc2762eefc032436052c0db679e;hp=4a0a43b30fca539da6fb0d7db0e065904d8ab020;hpb=bc4f3155ae3937d32a3ebaae77ee4f7be355aa60;p=stockfish diff --git a/src/move.cpp b/src/move.cpp index 4a0a43b3..3c906b2a 100644 --- a/src/move.cpp +++ b/src/move.cpp @@ -59,7 +59,7 @@ const string move_to_uci(Move m, bool chess960) { return from == SQ_E1 ? "e1c1" : "e8c8"; if (move_is_promotion(m)) - promotion = char(tolower(piece_type_to_char(move_promotion_piece(m)))); + promotion = char(tolower(piece_type_to_char(promotion_piece_type(m)))); return square_to_string(from) + square_to_string(to) + promotion; } @@ -95,7 +95,7 @@ const string move_to_san(Position& pos, Move m) { bool ambiguousMove, ambiguousFile, ambiguousRank; Square sq, from = move_from(m); Square to = move_to(m); - PieceType pt = pos.type_of_piece_on(from); + PieceType pt = piece_type(pos.piece_on(from)); string san; if (m == MOVE_NONE) @@ -157,7 +157,7 @@ const string move_to_san(Position& pos, Move m) { if (move_is_promotion(m)) { san += '='; - san += piece_type_to_char(move_promotion_piece(m)); + san += piece_type_to_char(promotion_piece_type(m)); } }