Create Functions To Generate Pseudo Legal Moves #7

Closed
opened 2025-08-16 16:55:27 +00:00 by Josh · 0 comments
Owner

Pseudo legal moves are all moves except those that put a king in check. Essentially, these moves are legal based on geometry and not on game check rules. After the pseudo moves are generated, they can then be filtered afterwards by applying chess rules to them.

Pseudo legal moves include the following:

  • pawns: quiets, doubles, captures, promotions, en-passant

  • knights/king: from attack / move caches

  • sliders: generate moves from ray scanning

  • castling: if squares empty + not attacked

Pseudo legal moves are all moves except those that put a king in check. Essentially, these moves are legal based on geometry and not on game check rules. After the pseudo moves are generated, they can then be filtered afterwards by applying chess rules to them. Pseudo legal moves include the following: - pawns: quiets, doubles, captures, promotions, en-passant - knights/king: from attack / move caches - sliders: generate moves from ray scanning - castling: if squares empty + not attacked
Josh changed title from Create Functions To General Pseudo Legal Moves to Create Functions To Generate Pseudo Legal Moves 2025-08-16 16:59:42 +00:00
Josh added the
enhancement
label 2025-08-17 18:18:30 +00:00
Josh self-assigned this 2025-08-17 20:10:31 +00:00
Josh closed this issue 2025-08-18 00:28:13 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: projects/chess#7
No description provided.