(Nov-17-2016, 09:48 PM)Paradoxalis Wrote: Part of my belief is that my computer may just not be able to handle the proccessing of 1000 runs through.1000 is nothing. The var Count was over a million by the time i got to ctrl + C to kill your program.
your whole code reeks of C style. I would suggest a complete change, but to answer why you code does not work....
you pretty much created an infinite loop by not allowing the exit clause to ever execute.
Quote:this never executes because the var Cards is always between 0-53, and the if conditions before it checks for all these, never allowing the last elif to execute because one before it always does.elif Count == 1000: print "1000 cards have been dealt" break
what you are looking for is to create a second if structure by doing this instead
if Count >= 1000:or make the condition in the while loop
Recommended Tutorials: