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?"
Your being to picky. People care less about grammar these days ten most other things. Irregardless, there doing the best they can
To write that post you had to have a bunch of silicon doped to recreate basic logic gates, a kernal to pass it instructions, an OS to let you interact with the kernal, a browser to connect it to a worldwide network and so on. This is cheating. Real Slashdotters use a butterfly.
Please consider this account deleted, I just can't be bothered with the spam anymore.
However the code itself is 140 bytes, the number of libraries required to operate it is at 10 gigabytes.
i thought once I was found, but it was only a dream.
Was supposed to be "winners" of course, but then "sinners" might well be the more appropriate term anyway...
G.
Here is my Tetris implementation:
However, it only works on custom Javascript interpreters which have a global a() function that implements a full game of Tetris.
== Jez ==
Do you miss Firefox? Try Pale Moon.
+1 insightful. We could make an entire OS in 140 bytes this way.
A tweet? I'm not familiar with that metric. Maybe you could convert it to something more standard like Libraries of Congress.
Did you know that the word 'obligatory' came from the Greek God Obligatius who, on occasion, would entertain Zeus with stand-up philosophy? One night he told an off-color joke about Rhea, it made all the gods laugh except for one. Zeus was so angry he punished Obligatius by making him tell the same joke over and over again until he can find somebody who'll laugh at it. To this day, he still wanders the earth saying "640k should be enough for everybody!"
"I like to lick butts!" by MobileTatsu-NJG (#32700246) (Score:5, Informative)
in javascript you don't need to end the last statement on a line with a semicolon, so you could reduce it to t()