Binary Tetris: Tetris-Like Game in 158 Characters of Code

#Games

Wed, Feb 22nd, 2012 12:00 by capnasty NEWS

github user aemkei has put this little bit of code that lets you play a game of Tetris called Binary Tetris. And by "a little bit of code" I really mean that: the entire thing is just 140 bytes in length.

function(a,b,c,d,e){return d+=c,
e=a|b<<d,d<0|a&b<<d&&(a=e=
parseInt((a|b<<c).toString(d=32)
.replace(/v/,""),d),b=new Date%2?1:3),
[a,b,d,e]}

  535

 

You may also be interested in:

Torpedoes for Kids
Full Screen Mario: Playable Super Mario Bros. Done Entirely in HTML5
Timelapse Video of Lego Ship Built in a Bottle
Little Inferno: Throw Your Toys into the Fire and Play With Them as They Burn
5th Avenue Frogger: Play Frogger Dodging 5th Avenue's Real Traffic