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

I can't seem to find the end condition for the Maze demo. There is no 'goal_reached?'


There isn't. I had to enclose the algorithm in a while (true) loop and if you reach the goal the program stops automatically. Here is a screenshot: http://imgur.com/0mape


When I solved it, the program just stopped running.


My browser crashes presumably because I use 'while true'. Chrome Version 19.0.1084.52




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

Search: