r/programming • u/balazsbotond • Aug 30 '15
JavaScript “maze generator” in a tweet
https://twitter.com/botond_balazs/status/637960240055615488
841
Upvotes
r/programming • u/balazsbotond • Aug 30 '15
View all comments
Show parent comment
2
u/bottomofthekeyboard Aug 31 '15 edited Aug 31 '15
Congratulations! we have now achieved quantum level code golfing. (thanks for the nifty math tricks everyone)
Edit: If you're lucky with the random seed, this doesn't look to bad (thanks to #SleepingScientiam method)
101:
javascript:for(i=4051;i--;)document.write(i%~80?'ξ'+~(Math.random()*2-8):'<p style=margin:-.7%>')