Allegro.cc
Projects
Action252
Adventure22
Arcade216
Board Games30
Demos24
Emulators10
Other68
Puzzle139
Role Playing40
Sports25
Strategy58
Utilities46
Resource Directory
Code Gallery3
Compilers12
Help & Documents13
Libraries63
Media2
Tools8
Depot Games: 20 Lines

Current Version: 1.0

Project Status: Completed

Highest Popularity: #13 during May 2007

Links: Web Site

Category: Tetris

Developers: Matthew Leverton

Ports: iPhone, OS X, Windows

Source Code: Available

Author's Description: A simple Tetris game written for the "Allegro Game in 20 Lines" competition. The rules stated that the source code could contain no more than 20 semi-colons. I ended up with 16 lines...

See <http://www.allegro.cc/forums/thread/237297>.

(Note that the included binary is compiled with an unstable 4.3 branch and I think that is responsible for the pieces not lining up properly...)

Downloads

Name Comments Size Date
20_Lines.dmg OS X Binary & Source Code 1,394,002 06/01/2007 2:02 PM
20_Lines.zip Windows Binary & Source Code 211,683 06/01/2007 11:57 AM
Screenshots
20-lines.png
20-lines.png
Public Opinion
Overall Rating: 9.0
  • 9Man.. that's hilarious (the code)
  • 9In this case, the source code is more interesting than the game.
The Developer
Matthew Leverton
Matthew LevertonI am your friendly Allegro.cc host. (View Profile)