X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fendgame.h;h=394a6f62ae06c8e01d949338b31c14f02ce4bec7;hb=13a73f67c018e58b2fd46f886c45ef2b75188c8e;hp=278ddb617a1581c3b5f7366fa8746633065be704;hpb=500b9b0eb3b20ef58ff1280a089ab2ef1e3c6436;p=stockfish diff --git a/src/endgame.h b/src/endgame.h index 278ddb61..394a6f62 100644 --- a/src/endgame.h +++ b/src/endgame.h @@ -64,9 +64,9 @@ enum EndgameType { }; -/// Endgame functions can be of two types according if return a Value or a -/// ScaleFactor. Type eg_fun::type equals to either ScaleFactor or Value -/// depending if the template parameter is 0 or 1. +/// Endgame functions can be of two types depending on whether they return a +/// Value or a ScaleFactor. Type eg_fun::type returns either ScaleFactor +/// or Value depending on whether the template parameter is 0 or 1. template struct eg_fun { typedef Value type; }; template<> struct eg_fun<1> { typedef ScaleFactor type; }; @@ -95,9 +95,9 @@ private: }; -/// Endgames class stores in two std::map the pointers to endgame evaluation -/// and scaling base objects. Then we use polymorphism to invoke the actual -/// endgame function calling its operator() that is virtual. +/// The Endgames class stores the pointers to endgame evaluation and scaling +/// base objects in two std::map typedefs. We then use polymorphism to invoke +/// the actual endgame function by calling its virtual operator(). class Endgames {