Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ddugovic committed Jun 17, 2023
2 parents a6d752b + 0187546 commit e241008
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1590,9 +1590,7 @@ namespace {

// Step 4. Static evaluation of the position
if (ss->inCheck)
{
bestValue = futilityBase = -VALUE_INFINITE;
}
else
{
if (ss->ttHit)
Expand All @@ -1607,11 +1605,9 @@ namespace {
bestValue = ttValue;
}
else
{
// In case of null move search use previous static eval with a different sign
ss->staticEval = bestValue = (ss-1)->currentMove != MOVE_NULL ? evaluate(pos)
: -(ss-1)->staticEval;
}

// Stand pat. Return immediately if static value is at least beta
if (bestValue >= beta)
Expand Down

0 comments on commit e241008

Please sign in to comment.