mirror of
https://github.com/sockspls/badfish
synced 2025-04-29 16:23:09 +00:00
Revert "Fix critical SEE bug (take 2)"
This reverts commit 3e95800814
For some reason it fails the short TC test:
LLR: -2.96 (-2.94,2.94)
Total: 20033 W: 4214 L: 4265 D: 11554
bench: 4769737
This commit is contained in:
parent
b191df5ebe
commit
9207baed65
1 changed files with 9 additions and 6 deletions
|
@ -1195,12 +1195,6 @@ int Position::see(Move m, int asymmThreshold) const {
|
|||
do {
|
||||
assert(slIndex < 32);
|
||||
|
||||
if (captured == KING) // Stop before processing a king capture
|
||||
{
|
||||
swapList[slIndex++] = QueenValueMg * 16;
|
||||
break;
|
||||
}
|
||||
|
||||
// Add the new entry to the swap list
|
||||
swapList[slIndex] = -swapList[slIndex - 1] + PieceValue[MG][captured];
|
||||
slIndex++;
|
||||
|
@ -1211,6 +1205,15 @@ int Position::see(Move m, int asymmThreshold) const {
|
|||
stm = ~stm;
|
||||
stmAttackers = attackers & pieces(stm);
|
||||
|
||||
if (captured == KING)
|
||||
{
|
||||
// Stop before processing a king capture
|
||||
if (stmAttackers)
|
||||
swapList[slIndex++] = QueenValueMg * 16;
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
} while (stmAttackers);
|
||||
|
||||
// If we are doing asymmetric SEE evaluation and the same side does the first
|
||||
|
|
Loading…
Add table
Reference in a new issue