Question: The Dragon Description In this program, you are going to create a text based game where the player is fighting a dragon. This program will
The Dragon
Description
In this program, you are going to create a text based game where the player is fighting a dragon. This program will heavily use the random module, branching and while loops. This will work in turns and keep going until either the dragon or the player has or less health and has thus been defeated. The player always goes first and when it is the dragons turn, if it has any health remaining, then it will take its action.
Since you are using the random module, you need to ask the user for a random seed one time at the beginning of the program so that there are reproducible results. Your prompt for input should be
Enter a seed number:
and should end with a colon, a space, and a newline.
Since the dragon is stronger than the player, the dragon starts with health, and the player starts with health
The player has two actions they can take. You will get the action from input. The player can either attack the dragon or heal themselves. The input for attack is a and the input for heal is On any other input for the player action, then the player is confused and will not do anything.
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
