]> git.sesse.net Git - stockfish/commitdiff
Fix StormOpenFileBonus[] bug
authorMarco Costalba <mcostalba@gmail.com>
Mon, 17 May 2010 05:08:47 +0000 (06:08 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 22 May 2010 17:35:00 +0000 (18:35 +0100)
It was erroneusly reversed. Bug from Glaurung times.
Probably a full re-tuning is needed anyhow.

Spotted and fixed by Ralph Stoesser.

After 999 games almost no change, but modified anyway
for documentation reasons.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/pawns.cpp

index 9ca1f67f536d8291125ab6852b8e438086352f3e..8835d327e068b1e12215cfe754d3e17bcd641970 100644 (file)
@@ -94,8 +94,8 @@ namespace {
   };
 
   // Pawn storm open file bonuses by file
-  const int16_t KStormOpenFileBonus[8] = { 31, 31, 18, 0, 0, 0, 0, 0 };
-  const int16_t QStormOpenFileBonus[8] = { 0, 0, 0, 0, 0, 26, 42, 26 };
+  const int16_t QStormOpenFileBonus[8] = { 31, 31, 18, 0, 0, 0, 0, 0 };
+  const int16_t KStormOpenFileBonus[8] = { 0, 0, 0, 0, 0, 26, 42, 26 };
 
   // Pawn storm lever bonuses by file
   const int StormLeverBonus[8] = { -8, -8, -13, 0, 0, -13, -8, -8 };