Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.12 seconds.

  1. Replies
    7
    Views
    1,385

    [SOLVED] Re: Simple Increment in a Loop error

    Are you sure that works? I really wouldn't expect it to. I think you were closer the first time around, and you're overcomplicating things now.
  2. Replies
    7
    Views
    1,385

    [SOLVED] Re: Simple Increment in a Loop error

    I suggest stepping through this with a debugger, or at the very least stepping through it in your head and using print statements to help you understand what's going on. When will that while loop...
  3. Replies
    7
    Views
    1,385

    [SOLVED] Re: Simple Increment in a Loop error

    Are you sure it exits fine when the user wins 3 times? Take a look at your while loop:

    while(totalCompWin < 3 || totalUserWin < 3)

    That means the program will continue to loop while EITHER one...
Results 1 to 3 of 3