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 6
Core Game Logic: Check and Stalemate
1
Implementing Piece Movement
Write a function to execute a move by updating piece positions on the board struct.
2
Detecting Check for a Specific Player's King
Implement logic to detect if a specific player's king is currently in check.
3
Filtering Legal Moves to Protect the King
Filter a list of potential moves to generate only legal moves that do not leave the king in check.
Checkmate: The Final Move
Detect checkmate by determining if a player is in check and has no legal moves.
Detecting Stalemate
Detect stalemate by determining if a player is not in check but has no legal moves.
Previous module
Implementing Piece Movement
Next module
Advanced Rules: Castling and Promotion