Incrementing not working

Nov 6, 2011 at 9:02pm
deleted
Last edited on Nov 7, 2011 at 12:58pm
Nov 7, 2011 at 1:55am
deleted
Last edited on Nov 7, 2011 at 12:58pm
Nov 7, 2011 at 2:38am
Are you sure that:
1. your if statement is being tested sufficient times, and
2. returning true sufficient times

to increment count to the point that the game function will return? In your last block of code, count doesn't get changed; it merely gets assigned to a return value (plus one).

If you're not using a debugger, you can put telltales inside your "if (pennies..." loop to see that it's getting executed as often as you think it is.
Topic archived. No new replies allowed.