b.architect (4) [Avatar] Offline
#1
Hi Anthony,

I've found that link_caves() function is incorrect. If I use it, the program will be infinite loop. The correct one should be:

def link_caves():
...
while unvisited_caves != []:
this_cave = choose_cave(visited_caves)
next_cave = choose_cave(unvisited_caves)
create_tunnel(this_cave, next_cave)
visit_cave(next_cave)

Cheers,
Weera