Creating a Position
Chessops provides multiple ways to create chess positions.Starting Position
Making Moves
Moves can be created using square indices, UCI notation, or SAN notation.Understanding Square Indices
Squares are represented as numbers 0-63, where 0 is a1, 7 is h1, 56 is a8, and 63 is h8.
Playing a Complete Game
Here’s how to play through the famous “Fool’s Mate” - the shortest possible checkmate.Cloning Positions
Always clone a position before making moves if you want to preserve the original.Converting Positions
Convert positions to various formats for storage or display.Error Handling
Chessops uses the Result type for operations that can fail. Always unwrap results properly.Next Steps
Move Generation
Learn how to generate and validate legal moves
Position Analysis
Analyze positions for checks, checkmate, and more