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.
Type: Posts; User: KevinWorkman
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.
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...
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...