After making our 2 player Button Presser Game, let’s make some improvements.
Objective: modify the code so that the game repeats until there are no ties!
Hint : use a while True loop and break when someone wins
After making our 2 player Button Presser Game, let’s make some improvements.
Objective: modify the code so that the game repeats until there are no ties!
Hint : use a while True loop and break when someone wins
1 2 3 4 5 6 7 |
num = 10 while num < 100: num = num + 10 if a button pressed : num = num -1 if b button pressed : num = num + 2 |