]> git.sesse.net Git - stockfish/blobdiff - src/evaluate.h
Rename ei.kingDanger in ei.margin
[stockfish] / src / evaluate.h
index 754d52f618621131867fcd04ec967fb33412b386..2b2533907a5ed56cc53bae49b46ba1a58d802e51 100644 (file)
@@ -47,7 +47,7 @@ class Position;
 
 struct EvalInfo {
 
-  EvalInfo() { kingDanger[0] = kingDanger[1] = Value(0); }
+  EvalInfo() { margin[WHITE] = margin[BLACK] = VALUE_ZERO; }
 
   // Middle game and endgame evaluations
   Score value;
@@ -89,11 +89,8 @@ struct EvalInfo {
   // 2 to kingAdjacentZoneAttacksCount[BLACK].
   int kingAdjacentZoneAttacksCount[2];
 
-  // Middle game and endgame mobility scores
-  Score mobility;
-
-  // 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];
 };