Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
science_robot
· 14y ago · 0 comments
I can't seem to find the end condition for the Maze demo. There is no 'goal_reached?'
Comments
[–]
elteto
14y ago
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
[–]
suninwinter
14y ago
When I solved it, the program just stopped running.
[–]
science_robot
OP
14y ago
My browser crashes presumably because I use 'while true'. Chrome Version 19.0.1084.52