We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2914b85 commit b6d8848Copy full SHA for b6d8848
FLASK PROJECTS/Math Game/game.py
@@ -49,12 +49,10 @@ def main():
49
if user_answer == answer:
50
points += max(0, 5 - int(time_taken)) # Maximum bonus: 5 points
51
print(f"Round {round_number} over! Total points: {points}")
52
- if round_number != 5:
53
- print(f"Next round starts in 3 seconds...")
+ if round_number < 5:
54
time.sleep(3)
55
- round_number += 1
56
- num_integers += 1 # Increase number of integers for the next round
57
- else: print(f"Game complete! Total points: {points}")
+ round_number += 1
+ num_integers += 1 # Increase number of questions for the next round
58
59
print("Thanks for playing!")
60
0 commit comments