mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 17:19:36 +00:00
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 <mcostalba@gmail.com>
This commit is contained in:
parent
630fda2e2c
commit
9847adf19f
1 changed files with 1 additions and 1 deletions
|
@ -1594,7 +1594,7 @@ int Position::see(Square from, Square to) const {
|
||||||
if (pt == KING && stmAttackers)
|
if (pt == KING && stmAttackers)
|
||||||
{
|
{
|
||||||
assert(n < 32);
|
assert(n < 32);
|
||||||
swapList[n++] = 100;
|
swapList[n++] = QueenValueMidgame*10;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} while (stmAttackers);
|
} while (stmAttackers);
|
||||||
|
|
Loading…
Add table
Reference in a new issue