Open davidtcalabrese opened 3 years ago
Nice! I like this use of player state. Simple, and can be used for many things around the house (I.e. it is more general purpose). We should also think about adding 'hints' in the expository text that having a few beers may help you 'win'.
This will be the first function with state change.
Player will have an option to choose number of beers. If beers > 3, then we'll call game_over with reason "You drank too much" (something like that).
If
beers >= 1 AND beers <= 3
thenplayer_object.tipsy = True
.Then we can check for this state as they move throughout the game and they may get different results in the rooms. For example, I'm thinking maybe when they are tipsy the player actually wins the game when they ask teenagers to play Minecraft.