Skip to content

danielyx-z/Tetrio-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Teapot - A Python Tetris Bot for Tetrio

Banner


Features

  • Blazingly Fast: Searches for best moves with heuristic evaluation.
  • Customizable Playstyle: Adjust the bot's behavior with simple edits in heuristics.py.
  • Resolution Support: Currently supports 1920x1080 and 2560x1440 resolutions.
  • Easy Setup: Low-hassle setup with minimal dependencies and no need to build/compile files yourself.

🚀 Video Demo + Setup Instructions

teapot.mp4

📦 Quickstart Guide

  1. Download and Apply Skin

    • Download the included skin (skin.png) and apply it using Tetr.io Plus.
  2. Install Libraries

    • Run the following command in your terminal of choice: pip install keyboard dxcam
  3. Adjust Resolution

    • Modify the flag in constants.py to match your screen resolution. Supported resolutions are:
      • 1920x1080
      • 2560x1440
  4. Configure Tetr.io Settings

    • Set the following gameplay configurations:
      • Graphics: Low
      • Board Zoom: 130%
      • Shadow Visibility: 0%
      • Board Bounciness: 0%
  5. Optimize Particle Effects (Optional)

    • Replace the following particle effects with transparent files (empty.png) through Tetr.io Plus:
      • particle_beam
      • particle_beams_beam
      • particle_chirp
      • particle_star

    This ensures that the bot does not misinterpret particle effects as unknown blocks.

🛠 Customization

The bot's behavior is controlled by the values in heuristics.py. These values are placeholders but generally stable for testing. If you discover stronger values or optimizations, your contributions are welcome!

About

A Tetris AI bot to play Tetr.io using heuristic search, automatically plays Tetris at over 12 pieces/second. Inspired by Code Bullet's video.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages