X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsan.cpp;h=ae0364e83db1a35a89ae5df6924261a3bb6d0671;hp=545fae8fd5bd6a96ec37acd7786aca70a600ddd7;hb=8e31764c49149cd73cdbfd8a251bb31f068bf799;hpb=aad8c82cf693447d5ea075b5cb5819c8e26d8680 diff --git a/src/san.cpp b/src/san.cpp index 545fae8f..ae0364e8 100644 --- a/src/san.cpp +++ b/src/san.cpp @@ -138,7 +138,7 @@ Move move_from_san(const Position& pos, const string& movestr) { assert(pos.is_ok()); - MovePicker mp = MovePicker(pos, MOVE_NONE, OnePly, H); + MovePicker mp = MovePicker(pos, MOVE_NONE, ONE_PLY, H); Bitboard pinned = pos.pinned_pieces(pos.side_to_move()); // Castling moves @@ -164,7 +164,7 @@ Move move_from_san(const Position& pos, const string& movestr) { // Normal moves. We use a simple FSM to parse the san string. enum { START, TO_FILE, TO_RANK, PROMOTION_OR_CHECK, PROMOTION, CHECK, END }; static const string pieceLetters = "KQRBN"; - PieceType pt = NO_PIECE_TYPE, promotion = NO_PIECE_TYPE; + PieceType pt = PIECE_TYPE_NONE, promotion = PIECE_TYPE_NONE; File fromFile = FILE_NONE, toFile = FILE_NONE; Rank fromRank = RANK_NONE, toRank = RANK_NONE; Square to; @@ -368,7 +368,7 @@ namespace { if (type_of_piece(pc) == KING) return AMBIGUITY_NONE; - MovePicker mp = MovePicker(pos, MOVE_NONE, OnePly, H); + MovePicker mp = MovePicker(pos, MOVE_NONE, ONE_PLY, H); Bitboard pinned = pos.pinned_pieces(pos.side_to_move()); Move mv, moveList[8];