2020-11-16 17:54:46 +01:00
# Mastodon Chess
2020-11-18 16:52:03 +01:00
Play with other fediverse users a Chess game! Mastodon Chess control games, players and boards and even it post, graphically, every move to both players!
Mastodon Chess (mastochess) uses [python-chess ](https://python-chess.readthedocs.io/en/latest/ ) library.
2020-11-16 17:54:46 +01:00
2020-11-16 18:02:57 +01:00
### How to play:
2020-11-16 17:54:46 +01:00
2020-11-16 18:03:48 +01:00
To start a game:
2020-11-16 17:54:46 +01:00
@your_bot_username new
To make a move:
@your_bot_username move e2e4
2020-11-16 18:01:31 +01:00
To finish game at any time:
@your_bot_username end
2020-11-16 17:54:46 +01:00
### Dependencies
- **Python 3**
- Postgresql server
- Mastodon's bot account
2020-11-18 16:48:42 +01:00
- Mastodon server admin
2020-11-16 17:54:46 +01:00
### Usage:
Within Python Virtual Environment:
1. Run `pip install -r requirements.txt` to install needed Python libraries.
2. Run `python db-setup.py` to setup and create new Postgresql database and needed tables in it.
3. Run `python setup.py` to get your Mastodon's bot account tokens.
2020-11-18 16:46:11 +01:00
4. Use your favourite scheduling method to set `python mastochess.py` to run regularly.
2020-11-16 17:54:46 +01:00
2020-11-18 16:43:32 +01:00
![board ](board.png )