]> git.sesse.net Git - stockfish/blobdiff - src/evaluate.cpp
Improved spelling, grammar and comment
[stockfish] / src / evaluate.cpp
index 8d9dd6e7cdca399cdf7b1e9a1cfde9bd3b2f14a4..f6beca356bc5f0eb7cc6b66012c0a5a12890c2cc 100644 (file)
@@ -626,7 +626,8 @@ namespace {
     return score;
   }
 
     return score;
   }
 
-  // helper used by evaluate_passed_pawns to cap the distance
+  // king_distance() returns an estimate of the distance that the king
+  // of the given color has to run to reach square s.
   template<Tracing T>
   int Evaluation<T>::king_distance(Color c, Square s) {
     return std::min(distance(pos.square<KING>(c), s), 5);
   template<Tracing T>
   int Evaluation<T>::king_distance(Color c, Square s) {
     return std::min(distance(pos.square<KING>(c), s), 5);