Need Help debugging program - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Need Help debugging program (/thread-1215.html) Pages:
1
2
|
RE: Need Help debugging program - ToastyCoder - Dec-21-2016 (Dec-19-2016, 09:48 PM)nilamo Wrote: Ok, try changing it to I dont have gameIsDone defined, how do i define it RE: Need Help debugging program - Larz60+ - Dec-21-2016 before loop (PEP8): game_is_done = False while not game_is_done: ... # when ready to exit from loop add game_is_done = True RE: Need Help debugging program - nilamo - Dec-21-2016 (Dec-21-2016, 06:48 PM)ToastyCoder Wrote:(Dec-19-2016, 09:48 PM)nilamo Wrote: Ok, try changing it to Did you change your code a lot? Because you definitely did already have it defined, AND changed it's value in at least one place: Quote:GoodShots = getRandomNo(Kills) gameisDone = False while True: displayBoard(BunkerPics , ShotsMissed , ShotsHit , GoodShots) |