Question: Please I need help doing this in C. You are going to create a text based game. The game begins with a player. 1. The
Please I need help doing this in C. You are going to create a text based game. The game begins with a player. 1. The player has 4 lives. 2. The player has no money. 3. Strength equals 0. 4. Attribute of a player: name, lives, money, and strength Choices in the game. 1. Battle a. You will simulate a battle by using a random chance of 50/50. b. Half the time you win a battle the other half you lose. c. Your odds of winning a battle increases by 5 strength points for each battle you win. (ALway have a 20% chance of losing) d. Lose a battle you lose a life and strength is reduced by 5 strength points. (Play alway has at least a 20% chance of winning) e. Win a battle you get 50 dollars (you also get strength...) 2. Buy something a. strength 50 dollars for 5 strength b. a life 100 dollars for one life 3. Display the result of all battles as follows: a. Number of wins b. Number of losses c. Longest winning streak d. Longest losing streak 4. Display top 10 previous high scores (shown highest to lowest) a. Show the most money EVER at GAME OVER. 5. Quit Game should always DISPLAY remaining life, strength, & amount of money. Game ends when you run out of life (zero lives remaining). The High score is for accumulating the most money. Tasks = Points ---------------------- ------ Design Tool & comments 10 Use of Structs 10 Menu System 10 Battles 20 Buy Something 10 Display Battle Results 20 High Scores 10 File Input and Output 10 ---------------------- ------ Total 100
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
