]> git.sesse.net Git - stockfish/commitdiff
Fix some comments
authorhxim <hxim.jo@gmail.com>
Tue, 18 Nov 2014 22:39:17 +0000 (06:39 +0800)
committerGary Linscott <glinscott@gmail.com>
Tue, 18 Nov 2014 22:39:17 +0000 (06:39 +0800)
No functional change.

Resolves #123

src/evaluate.cpp
src/material.cpp
src/position.cpp

index 8cc481726b0760d445dc191ecb5b6f3e7687ac7b..b47570e86303863cc968e632ca49b15ca9e175b0 100644 (file)
@@ -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
index b7db134b9aa35d0a43dae7d4355f71af34a65327..a14e3370cad9c4a69afd507c193d09b52801b2c1 100644 (file)
@@ -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
index e7b9bdac3d77620f59b6087e3e58463e448b897b..422565290a561991b61b96fbf2c4cb0f4709a8b3 100644 (file)
@@ -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.