Hacker News new | past | comments | ask | show | jobs | submit login
Tetris Game in 140 Bytes of JavaScript (gist.github.com)
104 points by aemkei on Feb 15, 2012 | hide | past | favorite | 10 comments



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


I 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.


It's buggy (on collisions specially), but is fascinating nevertheless. Thanks for sharing.


The design causes far worse bugs than that, for example: you can stop a falling block's progress just by holding down left.


Not only that but if you hold it long enough you can make it clear a line with half of a 2 block


+1 for the author's use of the WTFPL.


Controller and display for another few hundred bytes...


the wtf licence just kicks asses :|


I name thee, Tweetris.


Haha, that would have been the perfect name for it!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: