Skip to content

Instantly share code, notes, and snippets.

@willnode
Created March 24, 2018 07:32
Show Gist options
  • Save willnode/23d8fe8e596788a49249841cfef21388 to your computer and use it in GitHub Desktop.
Save willnode/23d8fe8e596788a49249841cfef21388 to your computer and use it in GitHub Desktop.
c=document.body;
_='b=[85,1,-1],d=Array(1,0,4, onpoimov(>{dd=>d%2),90+e.x= e-12}),setIval(()=>{a 1])%,f* 2])*f+a,(<=a||!a 1!f 2|<f !(=||( 0einnerText(d,e)=>e%?d:"\\n"+d))},;10 0] e].fill(=d.map(]*=-1)|( (||3,c. d[ b[ )&&/|0,0)]=e=nter=(+';for(Y in $=' ')with(_.split($[Y]))_=join(pop());eval(_)
@willnode
Copy link
Author

Much better:

c=document.body;_=`b=[85,1,-1],d=Array(100).fill(0).fill(1,0,40),d[b[0]]=3,c.onpointermove=(e=>{d=d.map(d=>d%2),e=90+e.x/10|0,d[e]=d[e-1]=2}),setInterval(()=>{a=(b[0]+b[1])%10,f=(b[0]+10*b[2])/10|0,e=10*f+a,((b[(d[e]||10<=a||!a)&&1]*=-1)|(b[(d[e]||!f)&&2]*=-1)||10<f)&&!(d[e]=0)||(d[b[d[b[0]]=0]=e]=3,c.innerText=d.map((d,e)=>e%10?d:"\n"+d))},100);`;eval(_);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment