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

@@ -709,14 +709,14 @@ namespace {
attackUnits = Min(99, Max(0, attackUnits));
// Finally, extract the king danger score from the KingDangerTable[]
// array and subtract the score from evaluation. Set also ei.kingDanger[]
// array and subtract the score from evaluation. Set also ei.margin[]
// value that will be used for pruning because this value can sometimes
// be very big, and so capturing a single attacking piece can therefore
// result in a score change far bigger than the value of the captured piece.
ei.value -= Sign[Us] * KingDangerTable[Us][attackUnits];
ei.kingDanger[Us] = mg_value(KingDangerTable[Us][attackUnits]);
ei.margin[Us] = mg_value(KingDangerTable[Us][attackUnits]);
} else
ei.kingDanger[Us] = VALUE_ZERO;
ei.margin[Us] = VALUE_ZERO;
}