Cue blown mind.
Michael created an algorithm that prints out a predetermined set of Tetrominos (Tetris blocks), and places and rotates each square in place. It does this in a super calculated process where it lays out a bottom line of protruding blocks and then clears off everything above that before moving on.
For the much longer explanation, Michael has completely documented the programming and the incredibly smart thought process behinds his Tetris algorithm for your reading pleasure.
Sign up for CIO Asia eNewsletters.