Create Functions to Filter Pseudo Legal Moves #8
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Now that we have a pseudo move generator and the ability to scan for attacked squares and check conditions, we can implement a legality move filter.
To check for legal moves, we can first simulate the potential move and then check for legality in the new position. The main question is whether or not moving the piece leaves the player's king in check or puts it in check.