Way finding – a little PHP+HTML example from way back


I wrote this little app many years ago and thought I should share it. It’ basically works by drawing a 10X10 map (in html) using old tables (gasp!). By setting a start and end coordinate you can find the most optimal path through the maze. Essentially this is how most path finding works. Newer ones that friends of mine wrote used hexagonal shapes for better accuracy. There’s also a blocked option – in this example I hard coded a few coordinates.

It’s not perfect, as you might notice, but the concepts should be easy to follow. Have fun!

Here’s an example which you can try out. Download the code here

Leave a Reply

Your email address will not be published. Required fields are marked *