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]}

  863

 

You may also be interested in:

A Look at a Chinese Toy Factory
Nintendo's Duck Hunting Game + Softcore Porn
Life Size Lego Car Powered by Air
The Leap: It's Like Microsoft's Kinect, Only Better and Cheaper
If Super Mario Bros Was Designed in 2010