My code is different but works, is there a potential problem?

Here is my code. It works exactly as it is supposed to but is different from the video. Is there a problem here?

@_dawson I don’t think there is specifically a problem, but I don’t know if you’ll run into one later. All you’ve done is continue the loop if AskToPlayAgain is greater than zero. Since typing in a y when asked returns a 1 for the boolean, that then has the desired effect of running the game again.

1 Like

Privacy & Terms