1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-05-01 01:03:09 +00:00

Remove unreachable extension condition

A PvNode that givesCheck has been already granted
an extension of ONE_PLY in previous condition.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba 2012-04-29 18:58:48 +01:00
parent b93693b831
commit 39c08c17c5

View file

@ -863,7 +863,7 @@ split_point_start: // At split points actual search starts from here
ext = ONE_PLY; ext = ONE_PLY;
else if (givesCheck && pos.see_sign(move) >= 0) else if (givesCheck && pos.see_sign(move) >= 0)
ext = PvNode ? ONE_PLY : ONE_PLY / 2; ext = ONE_PLY / 2;
// Singular extension search. If all moves but one fail low on a search of // Singular extension search. If all moves but one fail low on a search of
// (alpha-s, beta-s), and just one fails high on (alpha, beta), then that move // (alpha-s, beta-s), and just one fails high on (alpha, beta), then that move