Forgot password
Enter the email address you used when you joined and we'll send you instructions to reset your password.
If you used Apple or Google to create your account, this process will create a password for your existing account.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Reset password instructions sent. If you have an account with us, you will receive an email within a few minutes.
Something went wrong. Try again or contact support if the problem persists.

Tetris Can Now Be Your Printer!

A resourceful Java programmer has created an algorithm that will print any image!
This article is over 11 years old and may contain outdated information

Michael Birken, a resourceful java programmer, has used his programming know-how to craft an algorithm that can convert a picture into a Tetris game. His algorithm goes through and image and finds the various pixels and their shapes and finds spots where a Tetrimino could be placed.  As Birken states on his site, 

Recommended Videos

“The Tetris Printer Algorithm converts each row of the bitmap image in a series of passes. Moving from left to right, each pass greedily plugs in J, T and L Tetriminos whenever they fit. For example, the image below contains a row of 16 pixels from a bitmap image.

The 5 passes required to cover the 16 pixels appear in the images below.”

More detail can be found on Birken’s site, which is linked below, but it is crazy to think that no other programmer has tried anything like this.

Finally, for those of you that also call yourself programmers, you can even check out his source code of the Tetris Printer here. Now the only one question remains, can the greatest Tetris players in the world craft images like this program? Hopefully one day we can see them fight side by side, making an awesome sprite of Mario.


GameSkinny is supported by our audience. When you purchase through links on our site, we may earn a small affiliate commission. Learn more about our Affiliate Policy
Author
Image of AJMandula
AJMandula
Hi! I'm a game developer from Colorado working on a game, 5th beat for the OUYA. When I'm not working on my own games, I am playing what I can on my PC, 3DS, Vita and iPhone.