Skip to content
Browse files

Fix king value in SEE

When SEE piece values changed in aaad484
of 9/12/2008 we forgot to update the value assigned in
case of captured king.

In that patch we changed the SEE piece values but without
proper testing. Probably it is a good idea to make some
tests with the old Glaurung values.

Bug spotted by Joona.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
  • Loading branch information...
1 parent 630fda2 commit 9847adf19f2017e30cd1580acaac151824e3161e @mcostalba committed Jun 16, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/position.cpp
View
2 src/position.cpp
@@ -1594,7 +1594,7 @@ int Position::see(Square from, Square to) const {
if (pt == KING && stmAttackers)
{
assert(n < 32);
- swapList[n++] = 100;
+ swapList[n++] = QueenValueMidgame*10;
break;
}
} while (stmAttackers);

0 comments on commit 9847adf

Please sign in to comment.
Something went wrong with that request. Please try again.