termichess
Play chess in your terminal.
git clone https://github.com/whiletruelearn/termichess.gitwhiletruelearn/termichessTermichess
A game of chess in your terminal. Built using the amazing TUI framework Textual.
Demo
termichess.v3.demo.mov
Features
- ♟️ Play chess right in your terminal
- 🧠 Stockfish integration for chess engine
- ✅ Move validation and legal move highlighting
- 🎨 Change board themes
- 🤓 Variety of geeky board pieces
- ⚙️ Configuration menu for different options to change on the fly
Installation
-
Please use Python 3.10 within your favourite venv. I have only tested currently only on
python 3.10 -
Install Stockfish:
- On Ubuntu or Debian:
sudo apt-get install stockfish - On macOS with Homebrew:
brew install stockfish - On Windows, download from Stockfish's official website and add it to your system PATH.
- On Ubuntu or Debian:
-
Install TermiChess:
pip install termichess
Running the Game
After installation, you can start the game by simply running:
termichess
- To exit out at any time , Press
q. - To restart the game click on the
Restartbutton
Running via Docker
You can also run termichess via Docker if that's what you prefer.
docker run -it ghcr.io/whiletruelearn/termichess:latest termichess
Note : Please keep sound config to off while using docker
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the Apache License - see the LICENSE file for details.
Acknowledgments
- Textual for the TUI framework
- python-chess for chess logic
- Stockfish for the chess engine
more like this
meine
meine 🌒 - A CLI file manager and system utility built with Textual. It combines intuitive command parsing with rich t…