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/mozjag Aug 30 '15 edited Aug 30 '15
Nice!
Note that /u/ZyklusDieWelt used
% 81to compensate for dropping a character in the EOL case, and to make that work you need to count to 4050 to get back the "same" 80x50 maze. Without the*(why use an unknown element?) you still have 119 characters though:Edit: When I responded to the parent comment for some reason I thought it was someone else's, hence me telling /u/ZyklusDieWelt what clever thing /u/ZyklusDieWelt had done.