X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fendgame.h;h=278ddb617a1581c3b5f7366fa8746633065be704;hp=5ea40bbf91b995070a7bf804b52ecc8c0fec548e;hb=67b0da83da343cb6046f2a2f088f7aa1a6276637;hpb=490f67a3f89449e243c3e85feb13679f388d9e22 diff --git a/src/endgame.h b/src/endgame.h index 5ea40bbf..278ddb61 100644 --- a/src/endgame.h +++ b/src/endgame.h @@ -43,7 +43,7 @@ enum EndgameType { KQKP, // KQ vs KP KQKR, // KQ vs KR KBBKN, // KBB vs KN - KmmKm, // K and one or two minors vs K and zero or one minor + KmmKm, // K and two minors vs K and one or two minors // Scaling functions @@ -52,6 +52,7 @@ enum EndgameType { KBPsK, // KB+pawns vs K KQKRPs, // KQ vs KR+pawns KRPKR, // KRP vs KR + KRPKB, // KRP vs KB KRPPKRP, // KRPP vs KRP KPsK, // King and pawns vs king KBPKB, // KBP vs KB @@ -85,12 +86,12 @@ struct EndgameBase { template SCALE_FUNS)>::type> struct Endgame : public EndgameBase { - explicit Endgame(Color c) : strongerSide(c), weakerSide(~c) {} - Color color() const { return strongerSide; } + explicit Endgame(Color c) : strongSide(c), weakSide(~c) {} + Color color() const { return strongSide; } T operator()(const Position&) const; private: - Color strongerSide, weakerSide; + const Color strongSide, weakSide; };