Skip to main content
grasp.study
About
Explore
Pricing
Log in
Try it for free
Back to course
👋
Welcome to a Grasp lesson
Create a free account
to keep studying and create your own study path.
Learning RUST with Chess
·
Module 5
Implementing Piece Movement
1
Pawn Movement: Capturing and Non-Capturing
Generate valid non-capturing and capturing moves for pawns.
2
Rook Movement: Horizontal and Vertical Paths
Generate valid moves for rooks along horizontal and vertical lines, stopping at blocking pieces.
3
Bishop Movement Rules
Generate valid moves for bishops along diagonal lines, stopping at blocking pieces.
4
Queen Movement: Rook & Bishop Combined
Generate valid moves for the queen by combining rook and bishop movement logic.
5
Knight's L-Shaped Moves
Generate valid moves for knights using L-shaped jump patterns.
6
King Movement: One-Square Radius
Generate valid moves for the king within a one-square radius.
Previous module
Modeling the Chess Board
Next module
Core Game Logic: Check and Stalemate