From 800ba28e833cff47ef046637cf9e825031bb9244 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sat, 12 Apr 2014 10:17:41 +0200 Subject: [PATCH 1/1] Fix a typo in evaluate Spotted by Lyudmil Antonov. No functional change. --- src/evaluate.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 121f2c60..859a1c38 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -207,7 +207,7 @@ namespace { Score KingDanger[COLOR_NB][128]; - // apply_weight() weights score v by score w trying to prevent overflow + // apply_weight() weighs score 'v' by weight 'w' trying to prevent overflow Score apply_weight(Score v, const Weight& w) { return make_score(mg_value(v) * w.mg / 256, eg_value(v) * w.eg / 256); } @@ -924,9 +924,8 @@ namespace { namespace Eval { - /// evaluate() is the main evaluation function. It always computes two - /// values, an endgame score and a middlegame score, and interpolates - /// between them based on the remaining material. + /// evaluate() is the main evaluation function. It returns a static evaluation + /// of the position always from the point of view of the side to move. Value evaluate(const Position& pos) { return do_evaluate(pos); -- 2.39.2