A chess game written in Rust and Bevy, with local offline play, an AI opponent, and local-network multiplayer.
- Full chess rule implementation
- Interactive piece movement and capture
- Move validation and turn-based gameplay
- Local multiplayer over a network (server-authoritative, two players)
- Clean UI
- Rust (latest stable version)
- Cargo
- Stockfish (required for AI opponent)
This game requires Stockfish to be installed on your system. The game will automatically search for it, but you need to install it first. Follow the instructions for your operating system:
brew install stockfishsudo apt-get install stockfish- Download the latest Stockfish executable from stockfishchess.org/download
- Extract the files to a location (e.g., C:\Program Files\stockfish)
- Add the installation directory to your system PATH, or the game will search common installation locations automatically
# Clone the repository
git clone https://github.com/susbakun/chess_game.git
cd chess_game
# Offline / AI mode — just run the client
cargo run -p client --releaseMultiplayer requires the server to be running first, then two client instances to connect to it. Currently this only works on localhost (both players on the same machine) or over a LAN if you point the client at the server's local IP — it is not deployable over the public internet yet.
# Terminal 1 — start the server
cargo run -p server --release
# Terminal 2 and 3 — start a client for each player
cargo run -p client --releaseSelect "Play Multiplayer" from the in-game menu in each client window. The first to connect plays White, the second plays Black.
Note: multiplayer is native-only and unavailable in the WASM/web build.
- Multiplayer support (local/LAN, two-player, server-authoritative)
- Adding chess engine
- Implement a system that keeps track of the taken pieces and displays them, maybe in UI or as objects next to the board.
- Finish implementing all the rules: castling, check mates.
- Show the result on the UI (instead of console).
- Replay button when the game's over.
- Play with timer (only on offline mode)
- WASM
- Multiplayer over the internet (currently localhost/LAN only)
- Reconnection handling after a disconnect mid-game
Built with:
- Bevy Chess Tutorial - Excellent reference for chess game implementation in Bevy
- Making a Turn-Based Multiplayer Game in Rust - Reference for the client/server/shared architecture and the validate/consume event pattern used for multiplayer