Skip to content

Python implementation of tetris game using super rotation system with heuristic ai option.

Notifications You must be signed in to change notification settings

DKorosec/tetris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Run with:

python main.py

  • requires Python 3.8

with each new level (everytime you break 10 lines) the background soundtrack gets faster to keep you in the beat!

  • pressing 'A' will toggle autopilot mode (AI will take control)

Preview:

Idea flow:

  1. Implement tetris rules ✔️

  2. Make it playable as human ✔️

  3. Make a heuristic AI playing it ✔️

    • demo:

    AI-DEMO

    https://www.youtube.com/watch?v=5__42Hn5tVA

IF I HAVE TIME IN THE FUTURE:

  1. Try to create machine learning AI to play it.
    • learning heuristic parameters for best fitness function.

About

Python implementation of tetris game using super rotation system with heuristic ai option.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published