mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 09:06:45 +08:00
Restore standard passed pawn definition
Use the usual and accepted passed pawn semantic instead of a non-standard one and remove a FIXME. STC (http://tests.stockfishchess.org/tests/view/576401350ebc5972faa1608d): LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 29646 W: 5663 L: 5557 D: 18426 LTC (http://tests.stockfishchess.org/tests/view/5764e4e90ebc5972faa160c3): LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 40224 W: 5578 L: 5484 D: 29162 bench: 7543902
This commit is contained in:
@@ -577,6 +577,7 @@ namespace {
|
||||
Square s = pop_lsb(&b);
|
||||
|
||||
assert(pos.pawn_passed(Us, s));
|
||||
assert(!(pos.pieces(PAWN) & forward_bb(Us, s)));
|
||||
|
||||
int r = relative_rank(Us, s) - RANK_2;
|
||||
int rr = r * (r - 1);
|
||||
|
||||
Reference in New Issue
Block a user