Slashdot Mirror


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?"

1 of 215 comments (clear)

  1. Re:Read the source code - love the licence.txt by jhoegl · · Score: -1, Troll

    I see it calls two base functions in Java. I guess that isnt part of the limit.
    So then, what does one consider 140 byte code? Just the main executable? Because in reality, the reliant code for the Date and parsInt are much much longer.