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

  558

 

You may also be interested in:

Torpedoes for Kids
Lego Star Wars Sand Crawler
#DotWar - Battle of the Twitter Avatars
Average gamer is 35, fat and bummed
iPad Games for Cats