mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 00:33:09 +00:00
Slight tweak to king safety. Bench: 5534531
This commit is contained in:
parent
bf706c4a4f
commit
0c06b4509d
1 changed files with 1 additions and 1 deletions
|
@ -496,7 +496,7 @@ Value do_evaluate(const Position& pos, Value& margin) {
|
|||
|
||||
// Init king safety tables only if we are going to use them
|
||||
if ( pos.piece_count(Us, QUEEN)
|
||||
&& pos.non_pawn_material(Us) >= QueenValueMg + RookValueMg)
|
||||
&& pos.non_pawn_material(Us) > QueenValueMg + PawnValueMg)
|
||||
{
|
||||
ei.kingRing[Them] = (b | (Us == WHITE ? b >> 8 : b << 8));
|
||||
b &= ei.attackedBy[Us][PAWN];
|
||||
|
|
Loading…
Add table
Reference in a new issue