Bottom Page

Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Need Help debugging program
#11
(Dec-19-2016, 09:48 PM)nilamo Wrote: Ok, try changing it to while not gameIsDone:.

I dont have gameIsDone defined, how do i define it
Quote
#12
before loop (PEP8):
game_is_done = False

while not game_is_done:
    ...
    # when ready to exit from loop add
    game_is_done = True
Quote
#13
(Dec-21-2016, 06:48 PM)ToastyCoder Wrote:
(Dec-19-2016, 09:48 PM)nilamo Wrote: Ok, try changing it to while not gameIsDone:.

I dont have gameIsDone defined, how do i define it

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)
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  cProfile debugging fakka 0 78 Jul-10-2019, 01:41 PM
Last Post: fakka
  Debugging in VS code kw42chan 0 112 Jul-02-2019, 02:06 PM
Last Post: kw42chan
  Newb question: Debugging + Linting Python in Visual Studio Code Drone4four 1 187 Apr-15-2019, 06:19 AM
Last Post: perfringo
  Debugging adam10e10 3 315 Apr-04-2019, 07:53 AM
Last Post: j.crater
  I need help debugging a class. knightwatch 2 277 Jan-16-2019, 02:28 AM
Last Post: stullis
  Debugging Python Astrikor 1 335 Dec-04-2018, 12:27 PM
Last Post: Larz60+
  python 'SMTP debugging server' not starting local error pcsailor 1 352 Nov-26-2018, 10:13 PM
Last Post: micseydel
  Debugging inside a thread with Python 2.3.4 zerajera 0 307 Nov-21-2018, 01:43 PM
Last Post: zerajera
  Debugging a seg fault tidymax 1 374 Oct-31-2018, 02:58 PM
Last Post: ichabod801
  Python debugging local os Baggelhsk95 1 353 Oct-18-2018, 10:11 AM
Last Post: Gribouillis

Forum Jump:


Users browsing this thread: 1 Guest(s)