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.
Some results have been hidden because they may be inaccessible to you