397894 (3) [Avatar] Offline
I have had a couple errors in my Hunt the Wumpus after building the functions. I moved all the of variables to the top of the program but had to move caves = setup_caves(cave_numbers) back down under the functions after getting this error: caves = setup_caves(cave_numbers)
NameError: name 'setup_caves' is not defined

I don't know if I have resolved that because now I am getting the error listed in the subject line. I am running Python v3.

Any ideas?
397894 (3) [Avatar] Offline
Okay, just modified the variable to: unvisited_caves = list(range(0, 20)). As it turns out in v3, range objects cannot be appended. I ran the program and got past that bug. On to the next one.