davidtcalabrese / minnetonka

a project to practice collaboration on github
0 stars 1 forks source link

create fridge() #16

Open davidtcalabrese opened 3 years ago

davidtcalabrese commented 3 years ago

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 then player_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.

EmbeddedMan commented 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'.