|
Buddy Game
Starting a game for my Java class but having trouble getting it going. Any code or help would be awesome.
Buddy Caretaker
Create a game that instantiates a buddy that may be a pet, creature, car, plant, etc. You need to select a type of buddy and at least five properties of at least three different types. The game must include at least three different activities that you can do with your buddy (example: Cat – feed, pet, clean litter box). There needs to a point system that determines the well-being of your buddy. (example: 5 – points for feeding, 1 – for petting and negative 5 – for cleaning the litter box) The needs to be a method to determine the wellbeing of your buddy (example: Good if points are between -3 and 3, poor if the points are between -6 and 6 and not Good, and dead if less than -6 or more then 6.)
The game should continuously ask the user which activity the user wants to perform. The activities must be listed including a sentinel value. After each activity, the program needs to display the wellbeing of the buddy. This should continue until the buddy dies or the sentinel value is entered.
Example:
Buddy Caretaker
What is your buddies name: Ily
Do you want to (F)eed Ily, (P)et Ily, (C)lean Ily’s litter box, or (G)o to bed? F
Buddy is Feeling Poor
Do you want to (F)eed Ily, (P)et Ily, (C)lean Ily’s litter box, or (G)o to bed? C
Buddy is Feeling Good
Do you want to (F)eed Ily, (P)et Ily, (C)lean Ily’s litter box, or (G)o to bed? C
Buddy is Feeling Poor
Do you want to (F)eed Ily, (P)et Ily, (C)lean Ily’s litter box, or (G)o to bed? C
Buddy is Feeling Dead
|