From 0f6f42cd8334603f6fdf22645c5860c2ce6bd82f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ste=CC=81phane=20Nicolet?= Date: Sun, 4 Feb 2018 00:13:56 +0100 Subject: [PATCH] Improved spelling, grammar and comment Author: Ben Koshy No functional change --- Readme.md | 4 ++-- src/evaluate.cpp | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Readme.md b/Readme.md index e3b36cc7..46f26090 100644 --- a/Readme.md +++ b/Readme.md @@ -98,9 +98,9 @@ for a quick reference. ### 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 -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. diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 8d9dd6e7..f6beca35 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -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 int Evaluation::king_distance(Color c, Square s) { return std::min(distance(pos.square(c), s), 5); -- 2.39.2