mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 17:46:26 +08:00
Some more work in pretty_pv
No functional change.
This commit is contained in:
@@ -114,7 +114,9 @@ namespace {
|
||||
result = UNKNOWN;
|
||||
|
||||
// Check if two pieces are on the same square or if a king can be captured
|
||||
if ( square_distance(wksq, bksq) <= 1 || wksq == psq || bksq == psq
|
||||
if ( square_distance(wksq, bksq) <= 1
|
||||
|| wksq == psq
|
||||
|| bksq == psq
|
||||
|| (us == WHITE && (StepAttacksBB[PAWN][psq] & bksq)))
|
||||
result = INVALID;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user