4 ms·
Tetris Game in 140 Bytes of JavaScript
- pooriaazimi 15y agoIt's buggy (on collisions specially), but is fascinating nevertheless. Thanks for sharing.
- JamesBlair 15y agoThe design causes far worse bugs than that, for example: you can stop a falling block's progress just by holding down left.
- simcop2387 15y agoNot only that but if you hold it long enough you can make it clear a line with half of a 2 block
- deleted 15y ago[deleted]
- riffraff 15y ago140 bytes appears to be the size of the function that does one state update step, but it excludes the code for showing the board, for interactions, for time based updates, or am I not understanding the code correctly? To me it seems a cool bit of code, but I don't understand in what way it can be considered "tetris in 140 bytes"
- brsim 15y agoI believe the concept is to compress the logic into 140 bytes or less, not the whole application, the initialisation code is for "free". My favourite part of these experiments is watching the gist comments, it's fascinating to see just how many bytes can be crushed from already tiny code, with a bit of help.
- farico 15y agothe wtf licence just kicks asses :|
- RyanMcGreal 15y ago+1 for the author's use of the WTFPL.
- michaelochurch 15y agoI name thee, Tweetris.
- aemkei 15y agoHaha, that would have been the perfect name for it!
- est 15y agoController and display for another few hundred bytes...