r/programming • • Aug 30 '15

JavaScript “maze generator” in a tweet

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

177 comments sorted by

View all comments

Show parent comment

2

u/Zarokima Aug 31 '15

If it's a maze, then they are guaranteed to be connected by at least one path. Otherwise the point is not within the maze. It might have holes in it, but those holes are outside of the maze.

0

u/kqr Aug 31 '15

It's almost as if you haven't been reading this discussion.

The whole point was that this is not a maze because it doesn't have connected start and goal points. Placing those points such that they stay connected takes more code than what fits into a tweet, and thus this can't possibly be a real tweet-sized maze generator, even if we'd be really nice about it.