- Python 97.7%
- CSS 2.3%
| .gitignore | ||
| api_interface.py | ||
| board.py | ||
| connect.py | ||
| custom_css.css | ||
| LICENSE | ||
| piece_data | ||
| README.md | ||
FediTris
also known as Fediverse Plays Tetris
Available at @feditris@botsin.space!
How to play?
Hop on to @feditris@botsin.space's latest post and comment what you think should be the next move, including one of the keywords below. Whatever move in the following list that gets mentioned the most in the comments will be the next one!
| Move | Internal name | Corresponding keywords |
|---|---|---|
| Move left | left |
left, l, ⬅ |
| Move right | right |
right, r, ➡ |
| Hard drop | hd |
hard, drop, hd, 🆗 |
| Rotate clockwise | cw |
clockwise, cw*, 🔁 |
| Rotate counterclockwise | ccw |
counterclockwise, ccw, 🔄 |
| Move down | any | literally anything but those keywords above |
*CW spoiler text is ignored from picking keywords.
Keep in mind you can only submit one valid comment per user per post!
How to run?
Step 1: Clone the repo, somewhere, then open a command line cd'd into the created folder.
As a Gotosocial Bot
Due to the bot being rebuilt for gotosocial, which has a different api, you instead need to supply everything from a token.json file in the following format:
{
"client_id": "the client id",
"client_secret": "the client secret",
"access_token": "Authorization token, not actually used",
"true_token": "The actual access token"
}
Note that everything api related is in api_interface.py. I am accepting contributions to change that!
As an offline program
python board.py- Type a move's internal name to run it!
How to contribute?
I don't know yet. I've been procrastinating on setting up a working mail server, so in the meantime feel free to ping me at @guigui@wetdry.world for that. (Doesn't forgejo have some federation support?)
By #Guigui, 2024-2026 Licensed under GPL v3.0