Tetris

As a programming exercise, I wrote a soft clone of Tetris in Python using pygame. This version has a different scoring system than the original and has no levels. However, it still has the ability to swap shapes. Since shapes are generated randomly forever, the Infinite Monkey Theorem applies, where any given sequence of shapes is guaranteed to appear given infinite time. Since there are sequences of shapes that are impossible to clear lines with, these sequences cause a game over. Thus, the game cannot last forever. Here is my Python code.