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 7
Advanced Rules: Castling and Promotion
Castling and En Passant: Extending Game State
Extend the game state to track castling rights and the en passant target square.
2
Castling: Logic and Conditions
Implement the logic for castling, including all necessary conditions.
3
Implementing En Passant Logic
Implement the logic for the en passant capture rule.
4
Pawn Promotion: Reaching the Opposite Rank
Implement pawn promotion when a pawn reaches the opposite rank.
Previous module
Core Game Logic: Check and Stalemate
Next module
Building a Playable Console Game