From 9d1522b24f24f0bb37425cb5bb2087d622faa58e Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sun, 19 Sep 2010 13:52:01 +0100 Subject: [PATCH] A king move can never have negative SEE So there is no need to explicitly check for king moves when detecting prunable evasions. Perhaps teoretically a very bit slower (I didn't test), but it is more clear now what evasions we consider prunable. No functional change. Signed-off-by: Marco Costalba --- src/search.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index fa483fbc..e1245085 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1502,7 +1502,6 @@ namespace { evasionPrunable = isCheck && bestValue > value_mated_in(PLY_MAX) && !pos.move_is_capture(move) - && pos.type_of_piece_on(move_from(move)) != KING && !pos.can_castle(pos.side_to_move()); // Don't search moves with negative SEE values -- 2.39.2