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

  600

 

You may also be interested in:

Realm of LARP: Unscripted Web Reality Series on 5 Role-Playing Gaming Enthusiasts
PuzzleScript: Open-Source HTML5 Game Engine to Make Puzzle Games
Way: a Most Unusual Multiplayer Game
Pillow Castle: Game Where Forced Perspective is Used to Solve Puzzles
1,600-Year-Old Viking War Game