Ad - leaderboard

Sunday, August 10, 2014

Tetris in 125 bytes?

Try this link to run this tiny program use the arrow keys to play tetris. Steve

Demo - http://jsbin.com/egiqul/195



This is the Tetris game in roughly 125 bytes in JavaScript.


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


Credits - Martin Kleppe @aem1k

What is the shortest and most effective code ever written? - Quora