Skip to content

Winning Tetris Bot made for the 2023 BEST/CECI Hackaton of the Catholic University of Louvain La Neuve

Notifications You must be signed in to change notification settings

thomasdevl/HackaPython

Repository files navigation

HackPython - Tetris Bot

👑This bot won the 2023 BEST/CECI Hackaton of the Catholic University of Louvain La Neuve👑

TertisAI_video.mp4

Description

This is a bot for the game Tetris. It only works on this website

Demo

Screenshot 2023-11-15 at 19 12 32

Our higgest score is 10.5 million points.

Screenshot 2023-11-15 at 19 12 32

Installation

  1. Install Python 3.6 or higher

  2. Run the following command in the terminal:

pip install -r requirements.txt

We recommend running a python venv you can find info on how to launch one here

Usage

  1. Update the pixel values for the game in the config.py file.

new_game_x, new_game_y

newgame png

first_piece_x, first_piece_y

current piece png

next_piece_x, next_piece_y

next piece png

accept_x, accept_y

confirn png

game_over_x, game_over_y

game over png

  1. Run the following command in the terminal:
python3 main.py

2*. if you get an error related to the self.color_to_piece dictionnary then you need to update the color values in the config.py.

About

Winning Tetris Bot made for the 2023 BEST/CECI Hackaton of the Catholic University of Louvain La Neuve

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •