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

  527

 

You may also be interested in:

Building Brooklyn Out of LEGOs
The People's Mario
BLK: a Multiplayer Voxel World in JavaScript
If Super Mario Bros Had a Portal Gun
PaperDude VR: Paperboy Redone Using Oculus Rift + Kinect + KickR