r/programming • • Aug 30 '15

JavaScript “maze generator” in a tweet

https://twitter.com/botond_balazs/status/637960240055615488
841 Upvotes

177 comments sorted by

View all comments

Show parent comment

7

u/Anders_A Aug 30 '15

So the best one we have so far is this

data:text/html,<pre style=line-height:1><script>for(i=4050;--i;)document.write("\u2571\u2572\n"[i% 81?Math.random()*2|0:2])</script></pre>

If we combine everything to a single string. Starting to look cool now!