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:
Marco Costalba
2010-08-20 09:47:07 +02:00
parent 00469d1798
commit c7a932bc74
4 changed files with 19 additions and 19 deletions

View File

@@ -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];
};