]> git.sesse.net Git - stockfish/commitdiff
Improved spelling, grammar and comment
authorStéphane Nicolet <cassio@free.fr>
Sat, 3 Feb 2018 23:13:56 +0000 (00:13 +0100)
committerStéphane Nicolet <cassio@free.fr>
Sat, 3 Feb 2018 23:13:56 +0000 (00:13 +0100)
Author: Ben Koshy

No functional change

Readme.md
src/evaluate.cpp

index e3b36cc72b67b3e56a12c60fdbac6007b0a9d86b..46f26090b62a5cab9810fa3e61a5242e6334f740 100644 (file)
--- a/Readme.md
+++ b/Readme.md
@@ -98,9 +98,9 @@ for a quick reference.
 
 ### Resource For Understanding the Code Base
 
 
 ### Resource For Understanding the Code Base
 
-* [Chessprogramingwiki](https://chessprogramming.wikispaces.com) has good overall chess engines explanations 
+* [Chess Programming Wiki](https://chessprogramming.wikispaces.com) has good overall chess engines explanations 
 (techniques used here are well explained like hash maps etc), it was 
 (techniques used here are well explained like hash maps etc), it was 
-also recommended by the [support at stockfish.](http://support.stockfishchess.org/discussions/questions/1132-how-to-understand-stockfish-sources)
+also recommended by the [support team at stockfish.](http://support.stockfishchess.org/discussions/questions/1132-how-to-understand-stockfish-sources)
 
 * [Here](https://chessprogramming.wikispaces.com/Stockfish) you can find a set of features and techniques used by stockfish and each of them is explained at the wiki, however, it's a generic way rather than focusing on stockfish's own implementation, but it will still help you. 
 
 
 * [Here](https://chessprogramming.wikispaces.com/Stockfish) you can find a set of features and techniques used by stockfish and each of them is explained at the wiki, however, it's a generic way rather than focusing on stockfish's own implementation, but it will still help you. 
 
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);