mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 00:33:09 +00:00
Trivial cleanup
Make naming and declaration of futilityValue in search consistent between different places. closes https://github.com/official-stockfish/Stockfish/pull/5165 No functional change.
This commit is contained in:
parent
d3fc1d835e
commit
9021a61807
1 changed files with 5 additions and 5 deletions
|
@ -963,11 +963,11 @@ moves_loop: // When in check, search starts here
|
||||||
if (!givesCheck && lmrDepth < 7 && !ss->inCheck)
|
if (!givesCheck && lmrDepth < 7 && !ss->inCheck)
|
||||||
{
|
{
|
||||||
Piece capturedPiece = pos.piece_on(move.to_sq());
|
Piece capturedPiece = pos.piece_on(move.to_sq());
|
||||||
int futilityEval =
|
Value futilityValue =
|
||||||
ss->staticEval + 287 + 277 * lmrDepth + PieceValue[capturedPiece]
|
ss->staticEval + 288 + 277 * lmrDepth + PieceValue[capturedPiece]
|
||||||
+ thisThread->captureHistory[movedPiece][move.to_sq()][type_of(capturedPiece)]
|
+ thisThread->captureHistory[movedPiece][move.to_sq()][type_of(capturedPiece)]
|
||||||
/ 7;
|
/ 7;
|
||||||
if (futilityEval < alpha)
|
if (futilityValue <= alpha)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1389,7 +1389,7 @@ Value Search::Worker::qsearch(Position& pos, Stack* ss, Value alpha, Value beta,
|
||||||
Key posKey;
|
Key posKey;
|
||||||
Move ttMove, move, bestMove;
|
Move ttMove, move, bestMove;
|
||||||
Depth ttDepth;
|
Depth ttDepth;
|
||||||
Value bestValue, value, ttValue, futilityValue, futilityBase;
|
Value bestValue, value, ttValue, futilityBase;
|
||||||
bool pvHit, givesCheck, capture;
|
bool pvHit, givesCheck, capture;
|
||||||
int moveCount;
|
int moveCount;
|
||||||
Color us = pos.side_to_move();
|
Color us = pos.side_to_move();
|
||||||
|
@ -1518,7 +1518,7 @@ Value Search::Worker::qsearch(Position& pos, Stack* ss, Value alpha, Value beta,
|
||||||
if (moveCount > 2)
|
if (moveCount > 2)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
futilityValue = futilityBase + PieceValue[pos.piece_on(move.to_sq())];
|
Value futilityValue = futilityBase + PieceValue[pos.piece_on(move.to_sq())];
|
||||||
|
|
||||||
// If static eval + value of piece we are going to capture is much lower
|
// If static eval + value of piece we are going to capture is much lower
|
||||||
// than alpha we can prune this move. (~2 Elo)
|
// than alpha we can prune this move. (~2 Elo)
|
||||||
|
|
Loading…
Add table
Reference in a new issue