mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 13:17:44 +00:00
Revert bad capture pruning
After testing does not seem to increase ELO. Indeed Glaurung is a little bit weaker, so revert. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
+4
-3
@@ -1162,7 +1162,7 @@ namespace {
|
|||||||
|
|
||||||
bool singleReply = (isCheck && mp.number_of_moves() == 1);
|
bool singleReply = (isCheck && mp.number_of_moves() == 1);
|
||||||
bool moveIsCheck = pos.move_is_check(move, dcCandidates);
|
bool moveIsCheck = pos.move_is_check(move, dcCandidates);
|
||||||
bool moveIsGoodCapture = (mp.current_move_type() == MovePicker::PH_GOOD_CAPTURES);
|
bool moveIsCapture = pos.move_is_capture(move);
|
||||||
bool moveIsPassedPawnPush = pos.move_is_passed_pawn_push(move);
|
bool moveIsPassedPawnPush = pos.move_is_passed_pawn_push(move);
|
||||||
|
|
||||||
movesSearched[moveCount++] = ss[ply].currentMove = move;
|
movesSearched[moveCount++] = ss[ply].currentMove = move;
|
||||||
@@ -1174,7 +1174,7 @@ namespace {
|
|||||||
// Futility pruning
|
// Futility pruning
|
||||||
if ( useFutilityPruning
|
if ( useFutilityPruning
|
||||||
&& ext == Depth(0)
|
&& ext == Depth(0)
|
||||||
&& !moveIsGoodCapture
|
&& !moveIsCapture
|
||||||
&& !moveIsPassedPawnPush
|
&& !moveIsPassedPawnPush
|
||||||
&& !move_promotion(move))
|
&& !move_promotion(move))
|
||||||
{
|
{
|
||||||
@@ -1206,7 +1206,7 @@ namespace {
|
|||||||
if ( depth >= 2*OnePly
|
if ( depth >= 2*OnePly
|
||||||
&& ext == Depth(0)
|
&& ext == Depth(0)
|
||||||
&& moveCount >= LMRNonPVMoves
|
&& moveCount >= LMRNonPVMoves
|
||||||
&& !moveIsGoodCapture
|
&& !moveIsCapture
|
||||||
&& !move_promotion(move)
|
&& !move_promotion(move)
|
||||||
&& !moveIsPassedPawnPush
|
&& !moveIsPassedPawnPush
|
||||||
&& !move_is_castle(move)
|
&& !move_is_castle(move)
|
||||||
@@ -2020,6 +2020,7 @@ namespace {
|
|||||||
assert(threat == MOVE_NONE || move_is_ok(threat));
|
assert(threat == MOVE_NONE || move_is_ok(threat));
|
||||||
assert(!move_promotion(m));
|
assert(!move_promotion(m));
|
||||||
assert(!pos.move_is_check(m));
|
assert(!pos.move_is_check(m));
|
||||||
|
assert(!pos.move_is_capture(m));
|
||||||
assert(!pos.move_is_passed_pawn_push(m));
|
assert(!pos.move_is_passed_pawn_push(m));
|
||||||
assert(d >= OnePly);
|
assert(d >= OnePly);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user