Tetris In 140 Bytes
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?"
Not to diminish their accomplishment, because this is very cool, but the 140 byte implementation is the base logic, it's not the actual printing or keyboard handling. Maybe that's nitpicking, but technically you can't just copy/paste that code and have the game, so I find the summary misleading.
so if your bored
Dear /. Overlords,
Would it be too much trouble to plug some type of grammar and spelling module into the slash-code? /. users; for you, the /. editors. I believe that in this wonderful age of computing, we wouldn't
Not for us, the
begrudge you guys a little help before you hit "submit."
Sincerely,
You're
[Fuck Beta]
o0t!
You'll love the non-restrictive EULA.
It's called WTFPL.
The fact is.. only the math is 140bytes. If you view the source and scroll down you see there is way more than that to actually make it work. Including javascript for controlling the game and displaying the blocks. It is in fact 1361 bytes.
#!/usr/bin/perl
use StupidShitIveWritten::Tetris(tetris);
tetris;
The european versions had just 1k (two 2114 chips of 1k x 4 bit)
If you actually look at the code, just the javascript is 733 bytes after taking out all whitespece, etc, not 140. And this doesn't count the html that embeds it - an additional 112 bytes, for a total of 845 bytes.
Let's call it what it is, Anti-Social Media.
Trust me, 1kB.
To clarify this, you're right that the original versions of the ZX80 and ZX81 both had 1KB onboard.
However, the US version of the ZX81 (the Timex Sinclair 1000) shipped with 2KB onboard, which is probably what the GP was thinking of.
"Slashdot - News and Chat Sites Deviant". (Click "homepage" link above for details).