Some more work in pretty_pv

No functional change.
This commit is contained in:
Marco Costalba
2014-04-06 01:11:30 +02:00
parent 698b645e10
commit fcf2a34080
3 changed files with 34 additions and 39 deletions

View File

@@ -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;