Skip to content

An AI agent that plays Tetris in the 40-line game mode on tetr.io

Notifications You must be signed in to change notification settings

CesarFRR/isi_tetris_ia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tetris Agent

Tetris Background

This project aims to create an agent that plays Tetris on tetr.io automatically. It utilizes Selenium for automation and implements cv2 for computer vision.

Table of Contents

Introduction

In this project, we develop an agent that plays Tetris on tetr.io. The agent uses automated functions implemented with Selenium to interact with the game interface. Additionally, it utilizes cv2 for computer vision to analyze the game state and make intelligent decisions.

Installation

To install and run this project, follow these steps:

  1. Clone the repository: git clone https://github.com/CesarFRR/isi_tetris_ia.git
  2. Install the required dependencies: pip install -r requirements.txt
  3. We're using the python 3.11.5 version

Usage

To use the Tetris agent, follow these steps:

  1. Run the main script: python main.py
  2. The agent will automatically launch the browser and start playing Tetris on tetr.io.

Dependencies

Using python 3.11.5 (64-bit) | March 2024

Contributing

We welcome contributions from the community. If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

License

This project is licensed under the MIT License.

Authors

  • Cesar Fabian Rincon Robayo (GitHub)
  • John Jairo Riano Martinez (GitHub)