X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.cpp;h=910966a43bcdda2f0d2c68a661a13cd75f563f91;hp=982befa35dacf71960f2d1bea539c7eccd2eb297;hb=f7742669cb52dff7a64bd1a9ba466e333abb87bc;hpb=59a9bc93512138eca31ec38d36d8ddd7868ed708 diff --git a/src/position.cpp b/src/position.cpp index 982befa3..910966a4 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -1029,7 +1029,7 @@ int Position::see_sign(Move m) const { return see(m); } -int Position::see(Move m, int asymmThreshold) const { +int Position::see(Move m) const { Square from, to; Bitboard occupied, attackers, stmAttackers; @@ -1096,15 +1096,6 @@ int Position::see(Move m, int asymmThreshold) const { } while (stmAttackers); - // If we are doing asymmetric SEE evaluation and the same side does the first - // and the last capture, it loses a tempo and gain must be at least worth - // 'asymmThreshold', otherwise we replace the score with a very low value, - // before negamaxing. - if (asymmThreshold) - for (int i = 0; i < slIndex; i += 2) - if (swapList[i] < asymmThreshold) - swapList[i] = - QueenValueMg * 16; - // Having built the swap list, we negamax through it to find the best // achievable score from the point of view of the side to move. while (--slIndex)