Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This will not solve general mazes. S=Start, G=Goal, O=Empty

    O-O-O
    |   |
    O S-O-G
    |   |
    O-O-O


I should have been more clear. That's the general logic for mazes where both the entrance and exit are on the outer edge.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: