Create Functions to Filter Pseudo Legal Moves #8

Closed
opened 2025-08-16 17:06:02 +00:00 by Josh · 0 comments
Owner

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.

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.
Josh added the
enhancement
label 2025-08-17 18:18:44 +00:00
Josh added the
WIP
label 2025-08-19 15:56:51 +00:00
Josh self-assigned this 2025-08-19 15:57:03 +00:00
Josh referenced this issue from a commit 2025-08-19 19:56:47 +00:00
Josh closed this issue 2025-08-19 19:56:52 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: projects/chess#8
No description provided.