A chess game on your terminal
Project description
Termichess
A game of chess in your terminal. Built using the amazing TUI framework Textual.
Demo
https://github.com/user-attachments/assets/305f1e5b-9c76-474f-b30e-5bee12ac3be8
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file termichess-0.1.4.tar.gz.
File metadata
- Download URL: termichess-0.1.4.tar.gz
- Upload date:
- Size: 68.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7bd11c9bd6d13334713097f865beeb086b0108496392d9062269bcf66f996d5b
|
|
| MD5 |
3defff797209c1ab093ad47b3abd1f4b
|
|
| BLAKE2b-256 |
342a6200361fce3f3d8fedfc5f98c506397c473498f54feaf6c69904e45ae80e
|
File details
Details for the file termichess-0.1.4-py3-none-any.whl.
File metadata
- Download URL: termichess-0.1.4-py3-none-any.whl
- Upload date:
- Size: 73.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc10b205426e0f92bfdade2e4166bcf48fe2283a7cd999a70138cde27fbb15fb
|
|
| MD5 |
50db9fcb471dc88a22efa83b2c3bbcb1
|
|
| BLAKE2b-256 |
f351da9c912d0312acc86ec86f14fc6d2f5106b21a1a377ce903f9eb415a7a3a
|