From 0a1f54975fe3cb59a5274cbfee51f5b53e64071b Mon Sep 17 00:00:00 2001 From: hxim Date: Wed, 19 Nov 2014 06:39:17 +0800 Subject: [PATCH] Fix some comments No functional change. Resolves #123 --- src/evaluate.cpp | 5 ++--- src/material.cpp | 2 +- src/position.cpp | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 8cc48172..b47570e8 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -57,9 +57,8 @@ namespace { // kingAttackersWeight[color] is the sum of the "weight" of the pieces of the // given color which attack a square in the kingRing of the enemy king. The - // weights of the individual piece types are given by the variables - // QueenAttackWeight, RookAttackWeight, BishopAttackWeight and - // KnightAttackWeight in evaluate.cpp + // weights of the individual piece types are given by the elements in the + // KingAttackWeights array. int kingAttackersWeight[COLOR_NB]; // kingAdjacentZoneAttacksCount[color] is the number of attacks to squares diff --git a/src/material.cpp b/src/material.cpp index b7db134b..a14e3370 100644 --- a/src/material.cpp +++ b/src/material.cpp @@ -37,7 +37,7 @@ namespace { // pair pawn knight bishop rook queen { 0 }, // Bishop pair { 39, 2 }, // Pawn - { 35, 271, -4 }, // knight OUR PIECES + { 35, 271, -4 }, // Knight OUR PIECES { 0, 105, 4, 0 }, // Bishop { -27, -2, 46, 100, -141 }, // Rook {-177, 25, 129, 142, -137, 0 } // Queen diff --git a/src/position.cpp b/src/position.cpp index e7b9bdac..42256529 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -1008,7 +1008,7 @@ void Position::undo_null_move() { } -/// Position::key_after() computes the new hash key after the given moven. Needed +/// Position::key_after() computes the new hash key after the given move. Needed /// for speculative prefetch. It doesn't recognize special moves like castling, /// en-passant and promotions. -- 2.39.2