Tetris by murky-satyr

for(t='';l=readline(i=4);)t+=l+'\n'
for(x=524/t.search('#')%202|0;i?t=t.replace(eval('/#(\\D{'+x+'}) /',--i),' $1#'):t!=(t=t.replace(/\n#{10}/,''))?t=/ +\n/(t)+t:0;);print(t)

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page