mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 18:17:02 +08:00
Assorted trivial cleanups June 2019
No functional change.
This commit is contained in:
committed by
Stéphane Nicolet
parent
c83cbe42f3
commit
4ae5a7b45a
@@ -739,7 +739,7 @@ namespace {
|
||||
}
|
||||
else if (ttHit)
|
||||
{
|
||||
// Never assume anything on values stored in TT
|
||||
// Never assume anything about values stored in TT
|
||||
ss->staticEval = eval = tte->eval();
|
||||
if (eval == VALUE_NONE)
|
||||
ss->staticEval = eval = evaluate(pos);
|
||||
@@ -978,7 +978,7 @@ moves_loop: // When in check, search starts from here
|
||||
|
||||
// Check extension (~2 Elo)
|
||||
else if ( givesCheck
|
||||
&& (pos.blockers_for_king(~us) & from_sq(move) || pos.see_ge(move)))
|
||||
&& (pos.is_discovery_check_on_king(~us, move) || pos.see_ge(move)))
|
||||
extension = ONE_PLY;
|
||||
|
||||
// Castling extension
|
||||
@@ -1013,7 +1013,7 @@ moves_loop: // When in check, search starts from here
|
||||
&& !givesCheck
|
||||
&& (!pos.advanced_pawn_push(move) || pos.non_pawn_material(~us) > BishopValueMg))
|
||||
{
|
||||
// Move count based pruning (~30 Elo)
|
||||
// Move count based pruning
|
||||
if (moveCountPruning)
|
||||
continue;
|
||||
|
||||
@@ -1037,8 +1037,8 @@ moves_loop: // When in check, search starts from here
|
||||
if (!pos.see_ge(move, Value(-29 * lmrDepth * lmrDepth)))
|
||||
continue;
|
||||
}
|
||||
else if ((!givesCheck || !extension)
|
||||
&& !pos.see_ge(move, -PawnValueEg * (depth / ONE_PLY))) // (~20 Elo)
|
||||
else if ( (!givesCheck || !extension)
|
||||
&& !pos.see_ge(move, -PawnValueEg * (depth / ONE_PLY))) // (~20 Elo)
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -1341,7 +1341,7 @@ moves_loop: // When in check, search starts from here
|
||||
{
|
||||
if (ttHit)
|
||||
{
|
||||
// Never assume anything on values stored in TT
|
||||
// Never assume anything about values stored in TT
|
||||
if ((ss->staticEval = bestValue = tte->eval()) == VALUE_NONE)
|
||||
ss->staticEval = bestValue = evaluate(pos);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user