X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fevaluate.h;h=2b2533907a5ed56cc53bae49b46ba1a58d802e51;hp=18362eaa8fdd76f7d0687c0acd85f26cce652af0;hb=c7a932bc744f899f53ce0013cbbbaa86915bb2e8;hpb=00469d1798920b6272e9d92e250db0a388b5afd9 diff --git a/src/evaluate.h b/src/evaluate.h index 18362eaa..2b253390 100644 --- a/src/evaluate.h +++ b/src/evaluate.h @@ -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]; };