Tetris in 73 Lines
Tetris in 73 Lines - 1
Jordan Trudgett (tgfcoder)
Tetris written in 73 lines. Was originally 150+, then
removed comments, extra space (indentation spacing and also
"x = 5", "6, 7, 8, 9" spaces for example) and put anything possible onto one line, separated by semi-colons.
The code itself is 2.6K and is 73 lines (probably can still be shortened.)
See if you can work out what each part does! (The list
manipulations would be the trickiest, I think.)
I was inspired by a similar tetris game written in 256
bytes... it probably does less than mine, but I thought it
was still damn impressive. :P
For a less sadistic approach to Python, see my
Updated the Source URI.
Pygame.org account Comments
If you wish to leave a comment with your pygame.org account, please sign in first.