Skip to content

muebau/tetrisai

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tetris AI for LED matrixes (like WLED)

This work is based on the work of https://github.com/LeeYiyuan/tetrisai. Thank you.

The main idea is to use this code to generate TPM2.net packages (special UDP packages) and send them to a LED matrix. The easies setup might be to use some matrix (eg. WS2812) with the WLED firmware and setup a tpm2.net receiver.

To run the code go to the 'js' folder and start:

nodejs index.js

ATTENTION: Most parameters are still hard coded to my setup of 20x15 pixels. If I find some time I might change that to a more flexible approach. Suggestions with pull request are welcome.

Demo

matrix showing tetris

License

Copyright (C) 2017 muebau MIT License

About

A Tetris AI written in Javascript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 87.3%
  • CSS 7.4%
  • HTML 5.3%