On the Chess Programming Wiki website, there is pseudo code implementation of a SEE algorithm whit x-rays.
Can someone explain why the x-ray attacks are only considered when the piece removed from the board may-x-ray? To me it seems that it's the piece behind the removed piece that is important. No?
Relevant piece of code :
Code: Select all
if ( fromSet & mayXray )
attadef |= considerXrays(occ, ..);