Tetris Game in 140 Bytes of JavaScript
gist.github.com
Tetris Game in 140 Bytes of JavaScript
1–10 of 12 posts
Re: Tetris Game in 140 Bytes of JavaScript
#2It's buggy (on collisions specially), but is fascinating nevertheless. Thanks for sharing.
Re: Tetris Game in 140 Bytes of JavaScript
#3It'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.
Re: Tetris Game in 140 Bytes of JavaScript
#4[deleted]
Re: Tetris Game in 140 Bytes of JavaScript
#5140 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"
Re: Tetris Game in 140 Bytes of JavaScript
#6140 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.
Re: Tetris Game in 140 Bytes of JavaScript
#7the wtf licence just kicks asses :|
Re: Tetris Game in 140 Bytes of JavaScript
#8+1 for the author's use of the WTFPL.
Re: Tetris Game in 140 Bytes of JavaScript
#9I name thee, Tweetris.
Re: Tetris Game in 140 Bytes of JavaScript
#10Controller and display for another few hundred bytes...