Skip to main content

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

  1. Please use Python 3.10 within your favourite venv. I have only tested currently only on python 3.10

  2. 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.
  3. 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 Restart button

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

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

termichess-0.1.4.tar.gz (68.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

termichess-0.1.4-py3-none-any.whl (73.1 kB view details)

Uploaded Python 3

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

Hashes for termichess-0.1.4.tar.gz
Algorithm Hash digest
SHA256 7bd11c9bd6d13334713097f865beeb086b0108496392d9062269bcf66f996d5b
MD5 3defff797209c1ab093ad47b3abd1f4b
BLAKE2b-256 342a6200361fce3f3d8fedfc5f98c506397c473498f54feaf6c69904e45ae80e

See more details on using hashes here.

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

Hashes for termichess-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 bc10b205426e0f92bfdade2e4166bcf48fe2283a7cd999a70138cde27fbb15fb
MD5 50db9fcb471dc88a22efa83b2c3bbcb1
BLAKE2b-256 f351da9c912d0312acc86ec86f14fc6d2f5106b21a1a377ce903f9eb415a7a3a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page