Closed yudori closed 4 years ago
Should the message be the same as when the player quits or the message states how many tries left? And am i to use classes and objects in this issue? @yudori
Should the message be the same as when the player quits or the message states how many tries left?
Your choice
And am i to use classes and objects in this issue?
Nope
Create a constant to hold an integer value representing the highest number of failed attempts a user can make. Set the value to any integer you want.
Using this constant, make the game track the number of failed attempts such that a message is shown and the game stops when the failed attempts exceed the value in the constant.
Extra: Read about classes and objects in python.