X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovepick.cpp;h=95e60003f00b6eafc9d5f5592e0cdd22c64bedef;hp=1ec56c2f700a7c2a30bedd371af100fc6a29e9ec;hb=073eed590edf992ed3aeb6c754cb0b3b394fe79d;hpb=1e586288ca4a0ae567c8d9b9b77e804f25fe6719;ds=sidebyside diff --git a/src/movepick.cpp b/src/movepick.cpp index 1ec56c2f..95e60003 100644 --- a/src/movepick.cpp +++ b/src/movepick.cpp @@ -115,7 +115,7 @@ MovePicker::MovePicker(const Position& p, Move ttm, Value th) ttMove = ttm && pos.pseudo_legal(ttm) && pos.capture(ttm) - && pos.see(ttm) > threshold ? ttm : MOVE_NONE; + && pos.see_ge(ttm, threshold + 1)? ttm : MOVE_NONE; stage += (ttMove == MOVE_NONE); } @@ -201,7 +201,7 @@ Move MovePicker::next_move() { move = pick_best(cur++, endMoves); if (move != ttMove) { - if (pos.see_sign(move) >= VALUE_ZERO) + if (pos.see_ge(move, VALUE_ZERO)) return move; // Losing capture, move it to the beginning of the array @@ -295,7 +295,7 @@ Move MovePicker::next_move() { { move = pick_best(cur++, endMoves); if ( move != ttMove - && pos.see(move) > threshold) + && pos.see_ge(move, threshold + 1)) return move; } break;