Hacker News new | ask | show | jobs
by science_robot 5125 days ago
I can't seem to find the end condition for the Maze demo. There is no 'goal_reached?'
2 comments

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