mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Merge branch 'master' into aspiration
bench: 4507288
This commit is contained in:
commit
db53883f06
1 changed files with 1 additions and 6 deletions
|
@ -811,12 +811,7 @@ split_point_start: // At split points actual search starts from here
|
||||||
givesCheck = pos.move_gives_check(move, ci);
|
givesCheck = pos.move_gives_check(move, ci);
|
||||||
dangerous = givesCheck
|
dangerous = givesCheck
|
||||||
|| pos.is_passed_pawn_push(move)
|
|| pos.is_passed_pawn_push(move)
|
||||||
|| type_of(move) == CASTLE
|
|| type_of(move) == CASTLE;
|
||||||
|| ( captureOrPromotion // Entering a pawn endgame?
|
|
||||||
&& type_of(pos.piece_on(to_sq(move))) != PAWN
|
|
||||||
&& type_of(move) == NORMAL
|
|
||||||
&& ( pos.non_pawn_material(WHITE) + pos.non_pawn_material(BLACK)
|
|
||||||
- PieceValue[MG][pos.piece_on(to_sq(move))] == VALUE_ZERO));
|
|
||||||
|
|
||||||
// Step 12. Extend checks and, in PV nodes, also dangerous moves
|
// Step 12. Extend checks and, in PV nodes, also dangerous moves
|
||||||
if (PvNode && dangerous)
|
if (PvNode && dangerous)
|
||||||
|
|
Loading…
Add table
Reference in a new issue