Tetris In 140 Bytes 215
mikejuk writes "Is it possible to write a JavaScript program in no more than a tweet's length? A website called 140byt.es says it is and has an implementation of Tetris to prove it. Ok, it only has two types of block — hence its title "Binary Tetris" — and there's no rotate, but it works. The blocks fall down the screen and you steer them into place. You can try it out by playing the demo. Of course the real fun is in figuring out how it works and there is lots of help on the site — so if you're bored how about the 140 character challenge?"
Read the source code - love the licence.txt (Score:5, Interesting)
You'll love the non-restrictive EULA.
Still not as good as: (Score:5, Interesting)
Chess in 672 bytes [ox.ac.uk]
Re:Nostalgia ... (Score:5, Interesting)
It reminds me of the old days when code was efficient and had to fit onto small discs and into limited RAM and/or ROM. The original Mac ROMs were 128k, and all the apps had to run in 128k of RAM. It was amazing what could be done when it just had to fit.
Get off my lawn. The ZX-80 and -81 had 1 kB, and there were plenty of games for them. Then there were other computers, all with limited memory.
I'm sure there are lots of people here except yours truly who have written a variant of SNAKE.
Re:Javascript in 1K (Score:4, Interesting)
The Chess entry makes a good sobriety test! : )
http://js1k.com/2010-first/demo/750 [js1k.com]
Comment removed (Score:5, Interesting)
Re:Nostalgia ... (Score:4, Interesting)
Nibble magazine (an Apple magazine from 1980-1992) had a coding contest every month. The rules: Maximum 2 lines of Apple BASIC. IT was probably my favorite part of the magazine. There were some amazing submissions.