Skip to content

M1v1savva/tetris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is Tetris made with JavaFX + Tetris AI

This project was completed as a part of Project1-1 within UM DSAI bachelor's program.


Run (requires Java installed)

  • Windows
gradlew.bat run
  • Linux/MacOS
./gradlew run

Controls

  • Q/E for rotating left/right respectively
  • SPACE for pentomino drop
  • UP, DOWN, LEFT and RIGHT for one-cell move in respective direction

Description

With this app you can both play tetris yourself and watch the bot play it. The bot is a greedy algorithm based on a linear metric. The weights for the metric were obtained with a built-from-scratch genetic algorithm. To use the app you have to sign up, the app will remember your gamertag.


GUI

Sign in screen:

Sign up screen:

Home screen:


Demos

Human playing:

tetris.mp4

AI playing:

bot.mp4

About

Tetris with autoplay algorithms

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages