X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovepick.cpp;h=264d941f602b45368c5871afa87e6a6d16691da0;hp=c2b8924a962a3392e152582e799ff1b90b6a0001;hb=efeb37c33f15a903dbe5706529a7a26511e9ca58;hpb=42ed4889876e761b006d0452e6cad9fdb94094f0 diff --git a/src/movepick.cpp b/src/movepick.cpp index c2b8924a..264d941f 100644 --- a/src/movepick.cpp +++ b/src/movepick.cpp @@ -51,10 +51,10 @@ namespace { }; CACHE_LINE_ALIGNMENT - const uint8_t MainSearchPhaseTable[] = { PH_TT_MOVES, PH_GOOD_CAPTURES, PH_KILLERS, PH_NONCAPTURES, PH_BAD_CAPTURES, PH_STOP}; - const uint8_t EvasionsPhaseTable[] = { PH_TT_MOVES, PH_EVASIONS, PH_STOP}; - const uint8_t QsearchWithChecksPhaseTable[] = { PH_TT_MOVES, PH_QCAPTURES, PH_QCHECKS, PH_STOP}; - const uint8_t QsearchWithoutChecksPhaseTable[] = { PH_TT_MOVES, PH_QCAPTURES, PH_STOP}; + const int MainSearchPhaseTable[] = { PH_TT_MOVES, PH_GOOD_CAPTURES, PH_KILLERS, PH_NONCAPTURES, PH_BAD_CAPTURES, PH_STOP}; + const int EvasionsPhaseTable[] = { PH_TT_MOVES, PH_EVASIONS, PH_STOP}; + const int QsearchWithChecksPhaseTable[] = { PH_TT_MOVES, PH_QCAPTURES, PH_QCHECKS, PH_STOP}; + const int QsearchWithoutChecksPhaseTable[] = { PH_TT_MOVES, PH_QCAPTURES, PH_STOP}; } @@ -75,7 +75,7 @@ MovePicker::MovePicker(const Position& p, Move ttm, Depth d, const History& h, int searchTT = ttm; ttMoves[0].move = ttm; badCaptureThreshold = 0; - badCaptures = moves + 256; + badCaptures = moves + MOVES_MAX; pinned = p.pinned_pieces(pos.side_to_move()); @@ -151,7 +151,7 @@ void MovePicker::go_next_phase() { // Bad captures SEE value is already calculated so just pick // them in order to get SEE move ordering. curMove = badCaptures; - lastMove = moves + 256; + lastMove = moves + MOVES_MAX; return; case PH_EVASIONS: