X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Ftypes.h;h=29c16ce7dbb8f877127f16e00cff5d618540fb56;hb=9d3fd011f1bc9ef6f3a3091aae10634b31e0032c;hp=c2087c6c07b9e8fd84be7d3033c19da397f894b7;hpb=aa603cfeeb6e902bcf996758515170b996ec1fb6;p=stockfish diff --git a/src/types.h b/src/types.h index c2087c6c..29c16ce7 100644 --- a/src/types.h +++ b/src/types.h @@ -186,6 +186,9 @@ enum Value : int { VALUE_MATE_IN_MAX_PLY = VALUE_MATE - MAX_PLY, VALUE_MATED_IN_MAX_PLY = -VALUE_MATE_IN_MAX_PLY, + // In the code, we make the assumption that these values + // are such that non_pawn_material() can be used to uniquely + // identify the material on the board. PawnValueMg = 126, PawnValueEg = 208, KnightValueMg = 781, KnightValueEg = 854, BishopValueMg = 825, BishopValueEg = 915,