pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing
Micro Tetris (5 lines)

Micro Tetris (5 lines) - v.0.1

Sean J McKiernan (mekire)

Tags:

Description

If you are a beginner seeking code examples to learn from, please don't even look at this; In fact I apologize to the programming community as a whole.

Note: For anyone not clear on the concept here, this is a line crunch that exploits every method available to put as much code on a single line as possible. This includes semicolon abuse and ternary chaining abuse. One cannot simply put the entire program on a single line as some seem to think you can; you can only chain simple (non-compound) statements using semicolons.

5 lines, 1.66KB.

An almost functional Tetris program.

Escape to quit, arrows to play

Abusing ternary expressions so badly they wish they had never been PEPed.

Please forgive me,

-Mek

Links

Home Page: http://code.google.com/p/micro-tetris-13-lines/downloads/list
Source: http://code.google.com/p/micro-tetris-13-lines/downloads/list

Releases

Micro Tetris (5 lines) - v.0.2c - Mar 13, 2013
Micro Tetris (5 lines) - v.0.1 - Mar 12, 2013

Pygame.org account Comments

If you wish to leave a comment with your pygame.org account, please sign in first.

No user comments have been submitted.
spotlight

 
our projects
pygame.org welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
 
recent releases
Apr 25, 2014

Apr 21, 2014


Apr 19, 2014

Apr 16, 2014

Apr 13, 2014

Apr 9, 2014

Mar 18, 2014


Mar 15, 2014

Mar 14, 2014

Mar 13, 2014

... more!
 
for pygame related questions, comments, and suggestions, please see help (lists, irc)