X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsan.cpp;h=0aa8318ed7b43968af9c4d018da2c3d69d53f190;hp=fad47f9573a0d63b66b94b32b00c1aa0fcccf39b;hb=cd4604b05c2d61928b26ab50c5864c36ef1d3785;hpb=b8ab5d533b8e7e3b12d6768745f407f7f9f8f434 diff --git a/src/san.cpp b/src/san.cpp index fad47f95..0aa8318e 100644 --- a/src/san.cpp +++ b/src/san.cpp @@ -113,10 +113,10 @@ const string move_to_san(const Position& pos, Move m) { san += "x"; } san += square_to_string(move_to(m)); - if (move_promotion(m)) + if (move_is_promotion(m)) { san += '='; - san += piece_type_to_char(move_promotion(m), true); + san += piece_type_to_char(move_promotion_piece(m), true); } } // Is the move check? We don't use pos.move_is_check(m) here, because @@ -141,7 +141,7 @@ Move move_from_san(const Position& pos, const string& movestr) { assert(pos.is_ok()); - MovePicker mp = MovePicker(pos, false, MOVE_NONE, OnePly, H); + MovePicker mp = MovePicker(pos, MOVE_NONE, OnePly, H); // Castling moves if (movestr == "O-O-O" || movestr == "O-O-O+") @@ -273,7 +273,7 @@ Move move_from_san(const Position& pos, const string& movestr) { while ((m = mp.get_next_move()) != MOVE_NONE) if ( pos.type_of_piece_on(move_from(m)) == pt && move_to(m) == to - && move_promotion(m) == promotion + && move_promotion_piece(m) == promotion && (fromFile == FILE_NONE || fromFile == square_file(move_from(m))) && (fromRank == RANK_NONE || fromRank == square_rank(move_from(m)))) { @@ -365,7 +365,7 @@ namespace { if (type_of_piece(pc) == KING) return AMBIGUITY_NONE; - MovePicker mp = MovePicker(pos, false, MOVE_NONE, OnePly, H); + MovePicker mp = MovePicker(pos, MOVE_NONE, OnePly, H); Move mv, moveList[8]; int n = 0;