Skip to content

Tetris bot capable of automatically playing custom multiplayer matches in TETR.IO

License

Notifications You must be signed in to change notification settings

ahmedrangel/tetrio-bot

Repository files navigation

Tetrio-Bot

A Tetris bot capable of automatically playing custom multiplayer matches in TETR.IO. It uses a modified version of ElTetris to analyze the current board for optimal moves and the @haelp/teto library to interact with main game API.

This project can be a good starting point to start developing tetrio bots.

Quick Setup

  1. Install dependencies.
pnpm i
  1. Create .env file and add your TETRIO_TOKEN or TETRIO_USERNAME, TETRIO_PASSWORD secrets.
# .env

TETRIO_TOKEN = "your_tetrio_bot_token"

# or

TETRIO_USERNAME = "your_tetrio_username"
TETRIO_PASSWORD = "your_tetrio_password"
  1. Start the bot
pnpm start
  1. If the login is successful, the bot will create a custom private room with autostart settings, and the room code will be logged to the console like Joined room: ABCD.

Disclaimer

You must use an account that has been approved as a bot account, otherwise you risk being banned. Contact TETR.IO Support to request a bot account.

Demo

The bot is the one on the right side.

tetrio-bot-demo-v2.mp4

About

Tetris bot capable of automatically playing custom multiplayer matches in TETR.IO

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published