
Description
Chess-tui is a simple chess game you can play from your terminal. It supports local 2 players mode, online multiplayer, playing against any UCI compatible chess engine, custom skins and more !
Quick install
If you want to install the game with your favorite package manager, you can find the installation guide here.
Available on
Features
Connect a chess engine
You can play chess-tui with any UCI compatible chess engines. To do so you will need to use the -e command to give the chess engine binary path.
Example:
Here I installed stockfish using homebrew and gave chess-tui the path the the engine binary. This command will store in your home directory the chess engine path so you don't have to relink it everytime !
You can also set the bot thinking depth directly from the command line:
This will set the bot to think at depth 15 for this session.
Configuration
Chess-tui uses a TOML configuration file located at ~/.config/chess-tui/config.toml. Here are the available configuration options:
# Path to the chess engine binary
= "/path/to/engine"
# Display mode: "DEFAULT" or "ASCII"
= "DEFAULT"
# Logging level: "Off", "Error", "Warn", "Info", "Debug", "Trace"
= "Off"
# Bot thinking depth for chess engine (1-255, default: 10)
= 10
# Lichess API token for online features
= "YOUR_LICHESS_TOKEN_HERE"
Configuration Options:
- engine_path: Path to your UCI-compatible chess engine binary
- display_mode:
DEFAULT: Uses unicode chess piecesASCII: Uses ASCII characters for pieces
- log_level: Controls the verbosity of logging
Off: No logging (default)Error: Only errorsWarn: Warnings and errorsInfo: General information, warnings and errorsDebug: Debugging informationTrace: Very verbose debugging information
- bot_depth: Controls how deep the chess engine thinks (1-255, default: 10)
- Higher values make the bot stronger but slower
- Lower values make the bot faster but weaker
- lichess_token: Your Lichess API token for online features
- Get your token at lichess.org/account/oauth/token
- Can also be set via command line:
chess-tui -l your_token_here
The config file is automatically created when you first run chess-tui. You can manually edit it to customize your experience.
All logs are stored in ~/.config/chess-tui/logs.
Game Controls
Basic Controls:
- Arrow keys or
h/j/k/l: Move cursor SpaceorEnter: Select/move pieceEsc: Deselect piece or close popups?: Show help menuq: Quit gameb: Return to home menus: Cycle through available skinsr: Restart current gamep: Navigate to previous position in historyn: Navigate to next position in history
Base config:
# no engine path
= "DEFAULT"
= "Off"
= 10
Documentation
You can find the documentation of the project here
Roadmap
You can find the roadmap of the project here if you want to contribute.
Crates.io
The project is also available on crates.io here