mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 01:03:09 +00:00
small ttCapture simplification.
ttCapture can be assigned to only once outside of the main loop. The patch seems functional at higher depths (seems possible in the case of non-legal TTmoves that are captures). passed STC LLR: 2.94 (-2.94,2.94) [-3.00,1.00] Total: 23189 W: 5098 L: 4980 D: 13111 http://tests.stockfishchess.org/tests/view/5bb3822c0ebc592439f6d966 passed LTC LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 10336 W: 1665 L: 1529 D: 7142 http://tests.stockfishchess.org/tests/view/5bb39a190ebc592439f6db8a unchanged bench: 4312846
This commit is contained in:
parent
489357d7b2
commit
d615f15fce
1 changed files with 1 additions and 4 deletions
|
@ -863,7 +863,7 @@ moves_loop: // When in check, search starts from here
|
|||
value = bestValue; // Workaround a bogus 'uninitialized' warning under gcc
|
||||
|
||||
skipQuiets = false;
|
||||
ttCapture = false;
|
||||
ttCapture = ttMove && pos.capture_or_promotion(ttMove);
|
||||
pvExact = PvNode && ttHit && tte->bound() == BOUND_EXACT;
|
||||
|
||||
// Step 12. Loop through all pseudo-legal moves until no moves remain
|
||||
|
@ -982,9 +982,6 @@ moves_loop: // When in check, search starts from here
|
|||
continue;
|
||||
}
|
||||
|
||||
if (move == ttMove && captureOrPromotion)
|
||||
ttCapture = true;
|
||||
|
||||
// Update the current move (this must be done after singular extension search)
|
||||
ss->currentMove = move;
|
||||
ss->continuationHistory = &thisThread->continuationHistory[movedPiece][to_sq(move)];
|
||||
|
|
Loading…
Add table
Reference in a new issue