Share your repls and programming experiences

← Back to all posts
Hunting game
PavelMartinek (7)

https://repl.it/@PavelMartinek/Hunting-game

This is my easy hunting game;) try it

Comments
hotnewtop
ElijahAnderson1 (0)

@PavelMartinek I changed my difficulty to easy. Then when I went to play it, it kept sending me to the options menu. When I selected hard, I got an error(I'll attatch it at the end). However, when I did not try to change my difficulty, it allowed me to play.

The error I got was
Traceback (most recent call last):
File "main.py", line 263, in <module>
hlavni_menu()
File "main.py", line 98, in hlavni_menu
moznosti_menu()
File "main.py", line 127, in moznosti_menu
moznosti_menu()
File "main.py", line 120, in moznosti_menu
print(obtiznost)
UnboundLocalError: local variable 'obtiznost' referenced before assignment