mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 07:27:46 +00:00
Save futilityMargin for both colors
It will be needed by future patches. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
+1
-4
@@ -860,11 +860,8 @@ namespace {
|
||||
// capturing a single attacking piece can therefore result in a score
|
||||
// change far bigger than the value of the captured piece.
|
||||
Score v = apply_weight(make_score(SafetyTable[attackUnits], 0), WeightKingSafety[Us]);
|
||||
|
||||
ei.value -= Sign[Us] * v;
|
||||
|
||||
if (Us == pos.side_to_move())
|
||||
ei.futilityMargin += mg_value(v);
|
||||
ei.futilityMargin[Us] += mg_value(v);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user