mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 07:27:46 +00:00
Broader condition for dangerous pawn moves
Instead of a passed pawn now we just require the pawn to be in the opponent camp to be considered a dangerous move. Added some renaming to reflect the change. Passed both short TC test LLR: 2.95 (-2.94,2.94) [-1.50,4.50] Total: 10358 W: 2033 L: 1900 D: 6425 And long TC LLR: 2.95 (-2.94,2.94) [0.00,6.00] Total: 21459 W: 3486 L: 3286 D: 14687 bench: 8322172
This commit is contained in:
committed by
Marco Costalba
parent
2408243cf4
commit
69a14554ee
+2
-3
@@ -807,7 +807,7 @@ moves_loop: // When in check and at SpNode search starts from here
|
||||
captureOrPromotion = pos.capture_or_promotion(move);
|
||||
givesCheck = pos.gives_check(move, ci);
|
||||
dangerous = givesCheck
|
||||
|| pos.passed_pawn_push(move)
|
||||
|| pos.advanced_pawn_push(move)
|
||||
|| type_of(move) == CASTLING;
|
||||
|
||||
// Step 12. Extend checks
|
||||
@@ -1207,9 +1207,8 @@ moves_loop: // When in check and at SpNode search starts from here
|
||||
&& !InCheck
|
||||
&& !givesCheck
|
||||
&& move != ttMove
|
||||
&& type_of(move) != PROMOTION
|
||||
&& futilityBase > -VALUE_KNOWN_WIN
|
||||
&& !pos.passed_pawn_push(move))
|
||||
&& !pos.advanced_pawn_push(move))
|
||||
{
|
||||
futilityValue = futilityBase
|
||||
+ PieceValue[EG][pos.piece_on(to_sq(move))]
|
||||
|
||||
Reference in New Issue
Block a user