Fediverse plays Tetris
  • Python 97.7%
  • CSS 2.3%
Find a file
2026-05-31 23:24:54 +02:00
.gitignore the selfhosted update 2024-11-16 22:07:56 +01:00
api_interface.py the selfhosted update 2024-11-16 22:07:56 +01:00
board.py adding kicks so the upcoming mini tspin is possible 2024-11-19 14:52:46 +01:00
connect.py adding kicks so the upcoming mini tspin is possible 2024-11-19 14:52:46 +01:00
custom_css.css the selfhosted update 2024-11-16 22:07:56 +01:00
LICENSE Create LICENSE 2026-05-31 23:01:51 +02:00
piece_data aeiou 2024-11-16 17:13:45 +01:00
README.md Actualiser README.md 2026-05-31 23:24:54 +02:00

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