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
1
u/kqr Aug 31 '15
Not any other arbitrary point, since there's no guarantee they would be connected. You'd have to write an algorithm traversing your maze from the start point and picking one of the reachable points within as a goal. And by the time you've included that code you're well outside the character limit of Twitter.