Skip to content

Final project for the Artificial Intelligence class 2021/2022

License

Notifications You must be signed in to change notification settings

DXOGO/tetris-bot_IA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Artifical Intelligence Final Project 2021/2022

Tetris Bot

In this project, we developed an intelligent bot capable of playing one of the most popular classic games: Tetris.

We used a breadth-first alpha-beta pruning search algorithm to seek for both solution optimality and time efficiency, as the game gets faster and faster over time..

Besides the alpha-beta pruning search algorithm, which is a variant of the minimax algorithm made to evaluate less nodes in a search tree, we also implemented look-ahead to plan the solutions of the next three tetrominoes (pieces) to find the best moves.

The code implemented for this project is inside the student.py and search.py files.

How to run:

Open 3 terminals

terminal 1: python3 server.py
terminal 2: python3 student.py
terminal 3: python3 viewer.py

Authors:

Ricardo Rodriguez

Diogo Cruz

João Reis

About

Final project for the Artificial Intelligence class 2021/2022

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published