From 9847adf19f2017e30cd1580acaac151824e3161e Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Tue, 16 Jun 2009 19:20:53 +0100 Subject: [PATCH 1/1] Fix king value in SEE When SEE piece values changed in aaad48464b 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 --- src/position.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/position.cpp b/src/position.cpp index 480a92ec..3ae7f50d 100644 --- a/src/position.cpp +++ b/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); -- 2.39.2