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:
Chris Caino
2013-12-03 21:58:39 +00:00
committed by Marco Costalba
parent 2408243cf4
commit 69a14554ee
3 changed files with 7 additions and 8 deletions
+2 -3
View File
@@ -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))]