Improved spelling, grammar and comment

Author: Ben Koshy

No functional change
This commit is contained in:
Stéphane Nicolet
2018-02-04 00:13:56 +01:00
parent 378c8bdbb8
commit 0f6f42cd83
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -626,7 +626,8 @@ namespace {
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);