Skip to content
menisadiPublic

About

Telegram bot for playing blindfold chess

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

Blind-Chess Bot

License: GPL v3 GitHub last commit

A chat bot that allows users to play chess via a messaging platform.

Requirements

Running the bot locally

  1. Create a bot and obtain its API token by talking to the Bot Father on Telegram.
  2. Clone the repository and navigate to the directory:
    git clone https://github.com/menisadi/ChessBot.git
    cd ChessBot
    
  3. Install dependencies: uv sync
  4. Create a .env file containing your API token: BOT_TOKEN=<your token>
  5. Run the bot: uv run bot.py

Usage

  1. Start a conversation with the bot and use the following commands to play chess:
  • /start - start a new game (then pick an engine - Sunfish, Andoma or Random - and your color)
  • <move> - make a move on the chess board (in standard algebraic notation e.g. e4, Nxe4, a8=Q)
  • /help - show all the available commands
  • /moves - show a list of legal moves
  • /resign - resign from the current game
  • /sunfish - switch to the Sunfish engine
  • /andoma - switch to the Andoma engine
  • /random - bot will make random moves
  • /show - show the board
  • /pgn - print the entire game in PGN format
  • /fen - print a FEN representation of the board
  • /gif - get a GIF of your game

Notes

  • The bot supports one game at a time per user
  • The bot targets Python 3.13 (see .python-version).

License

This project is licensed under GNU GPL v3 License - see the LICENSE file for details.

drawing

About

Telegram bot for playing blindfold chess

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages