Or read through the source code in the banner image ... And speaking of Tetris without an OS, if you’ve got a comparatively spacious Arduino, you can get a version with all the frills.
He's managed to squeeze the classic Tetris game into a 60KB PDF file that can run right in your browser. The creation, dubbed "Pdftris" by its maker Thomas Rinsma, lets you play the addictive ...