Better HN
topnewbestaskshowjobs
Log inSign up

lovegraphs

50 karma · joined May 26, 2015 (11y ago) · 14 submissions

Submissions

comment 11y ago · link · parent

Same on Chrome 45.0.2454.101, Ubuntu 14.04

comment 11y ago · link · parent

Thank you, sorry about that. I changed some references around and caught that error only after having deployed.

comment 11y ago · link · parent

By the way, thank you for your colorful simile--it really spurred me to fix this issue this morning, and I've definitely learned to take cross-browser compatibility more seriously. Cheers.

comment 11y ago · link · parent

Safari is fixed! I need to get a Macbook so testing is faster than waiting for a screenshot online...

comment 11y ago · link · parent

Hey Vishal, thanks! Small world!

comment 11y ago · link · parent

Thanks! It now works on iOS. Still working on Safari...

comment 11y ago · link · parent

Thanks! Pull request merged.

comment 11y ago · link · parent

Thanks! Removed.

comment 11y ago · link · parent

Lamentable. Must be some missing cross-browser CSS.. I'll look into it tomorrow! In the meanwhile try it in Chrome if you have a chance :)

comment 11y ago · link · parent

The particular generation algorithm that you see is called "Randomized Prim's algorithm" on Wikipedia. It starts at a random cell in a grid, marks it as discovered, and adds all of that cell's adjacent walls to a queue. It then selects a random wall from the queue and, if the cell on the other side of the wall has not yet been discovered, opens up that wall. It adds all of the adjacent cell's walls to the queue, marks the adjacent cell as discovered, and selects the next random wall in the queue until all the cells have been discovered. It's kind of a modified BFS. This algorithm guarantees that all cells are connected.

comment 11y ago · link · parent

That's right, it does a breadth-first-search from the end-point immediately upon clicking the end-point; it then traces the path from the start-point, following the parent-pointers set during the BFS, painting the DOM in the process.

comment 11y ago · link · parent

Thanks!

13.

Maze Generator and Solver(golubitsky.github.io ↗)

53 points · by lovegraphs · 11y ago · 41 comments