X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmovepick.h;h=7828fa19d975fb9f5e12f4e8a652d487037e6804;hb=15d47a2b3821b92c4d048f39f7f43c301299d365;hp=299925a582e7729677b06fcc07a623527e378bef;hpb=b4e9ee72e36aadd0e653ac4ab5c07a9e3d639aca;p=stockfish diff --git a/src/movepick.h b/src/movepick.h index 299925a5..7828fa19 100644 --- a/src/movepick.h +++ b/src/movepick.h @@ -58,7 +58,7 @@ class StatsEntry { assert(abs(bonus) <= D); // Ensure range is [-D, D] static_assert(D <= std::numeric_limits::max(), "D overflows T"); - entry += (bonus * D - entry * abs(bonus)) / (D * 5 / 4); + entry += bonus - entry * abs(bonus) / D; assert(abs(entry) <= D); } @@ -152,8 +152,7 @@ class MovePicker { const ButterflyHistory*, const CapturePieceToHistory*, const PieceToHistory**, - const PawnHistory*, - Square); + const PawnHistory*); MovePicker(const Position&, Move, Value, const CapturePieceToHistory*); Move next_move(bool skipQuiets = false); @@ -173,7 +172,6 @@ class MovePicker { Move ttMove; ExtMove refutations[3], *cur, *endMoves, *endBadCaptures; int stage; - Square recaptureSquare; Value threshold; Depth depth; ExtMove moves[MAX_MOVES];