mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 01:27:16 +08:00
Rename ei.kingDanger in ei.margin
It will be more clear when we will go to add stuff apart from king danger itself. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -47,7 +47,7 @@ class Position;
|
||||
|
||||
struct EvalInfo {
|
||||
|
||||
EvalInfo() { kingDanger[0] = kingDanger[1] = VALUE_ZERO; }
|
||||
EvalInfo() { margin[WHITE] = margin[BLACK] = VALUE_ZERO; }
|
||||
|
||||
// Middle game and endgame evaluations
|
||||
Score value;
|
||||
@@ -89,8 +89,8 @@ struct EvalInfo {
|
||||
// 2 to kingAdjacentZoneAttacksCount[BLACK].
|
||||
int kingAdjacentZoneAttacksCount[2];
|
||||
|
||||
// Value of the danger for the king of the given color
|
||||
Value kingDanger[2];
|
||||
// Value of the score margin we should consider for the given color
|
||||
Value margin[2];
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user