Question: in PYTHON Notice : The exact output of the program is not important, as the simulation depends on random values. A program that responds to

in PYTHON  in PYTHON Notice : The exact output of the program is
Notice : The exact output of the program is not important, as the simulation depends on random values. A program that responds to all situations requested in the question should be created.
Water Titan selected for Player 1
Earth Titan selected for Player 2
Starting Energies: (100,100)
Player 1 Uses Icy Healing Attack Type with Water Titan
Energy Status: (100.89)
Player 2 Earth Titan
Energy Status: (95.89)
1st Player with Water Titan
Energy Status: (95.82)
Player 2 Earth Titan
Energy Status: (89.82)
1st Player with Water Titan
Energy Status: (89.79)
Player 2 Earth Titan
Energy Status: (83.79)
Using the Storm of the Jungle Attack Type with
Rime Sting Used Attack Type
World's Anger Used Attack Type with
North Wind Used Attack Type
World's Anger Used Attack Type with
Player 1 uses the Water Titan and Rime Needle Attack Type
Energy Status: (83.72)
Player 2 Uses Jungle Storm Attack with Earth Titan Energy Status: (78.72)
Player 1 uses the North Wind Attack Type with the Water Titan
Energy Status: (78.69)
Player 2 Uses Earth Rage Attack Type with Titan Earth Energy Status: (72.69)
Player 1 Uses Icy Healing Attack Type with Water Titan
Energy Status: (72,58)
Player 2 Uses Earth Rage Attack Type with Titan Earth Energy Status: (66.58)
Player 1 uses the Water Titan and Rime Needle Attack Type
Energy Status: (66,51)
Player 2 Uses Jungle Storm Attack with Titan Earth Energy Status: (61.51)
Player 1 uses the Water Titan and Rime Needle Attack Type
Energy Status: (61.44)
Player 2 Uses Jungle Storm Attack with Titan Earth Energy Status: (56.44)
Player 1 uses the Water Titan and Rime Needle Attack Type
Energy Status: (56.37)
Player 2 Uses Underground Prison Attack Type with Earth Titan Energy Status: (46,37)
Player 1 uses the North Wind Attack Type with the Water Titan
Energy Status: (46.34)
Player 2 Uses Earth Rage Attack Type with Titan Earth Energy Status: (40,34)
Player 1 Uses Icy Healing Attack Type with Water Titan
Energy Status: (40,23)
Player 2 Uses Jungle Storm Attack with Titan Earth Energy Status: (35,23)
Player 1 uses the North Wind Attack Type with the Water Titan
Energy Status: (35.20)
Player 2 Uses Earth Rage Attack Type with Titan Earth
Energy Status: (29.20)
Player 1 uses the icy Healing Attack Type with the Water Titan
Energy Status: (29,9)
Player 2 Uses Jungle Storm Attack with Titan Earth Energy Status: (24.9)
Player 1 uses the North Wind Attack Type with the Water Titan
Energy Status: (24,6)
Player 2 Uses Jungle Storm Attack Type with Titan Earth Energy Status: (19,6)
Player 1 uses the Water Titan and Rime Needle Attack Type
Energy Status: (19, -1)
Player 1 Won

A program that simulates a game will be written. There will be three characters available in the game: fire titan, water titan and earth titan. Simulation will be made by choosing two characters different from each other randomly. The attack types, effects and probabilities of the characters are given as in the table. The energies of the initially selected characters will be considered as 100. After the attack type of the character is determined randomly in each move, the energy of the opponent character will be reduced by the effect of the attack type. The probability of realization of the attack type for characters will be calculated using the random.randint command by adding the library as follows. import random probability = random.randint (1,100) For example, when the values in the table are examined, if the probability of an attack for the water titan is between 1 and 20 (inclusive), the frigid healing attack type will be used. If it is between 21 and 60 (inclusive), frost needle attack type will be used. In the range of 61 to 100 (inclusive), the north wind attack type will be used. For these attack types, the energy of the opponent will be reduced to 11, 7 and 3, respectively. Similarly, the values in the table will be used for other characters. The first player to reduce their opponent's energy to zero or below zero will win the game. Write this application using the Python programming language. Notice: A program that responds to all situations requested in the question should be created. Table Character attack types, effects and probabilities. Character Attack Types Effect Probability Water Titan Frigid Healing 11 20 Water Titan Frost Needles 7 40 Water Titan North Wind 3 40 Fire Titan Herald of Flame 12 10 Fire Titan Crushing Blow 8 40 Fire Titan Erupting Rage 4 SO Earth Titan Subterranean Prison 10 15 Earth Titan Anger of the Earth 6 25 Earth Titan Forest Storm 5 60 Note: Explanation lines should be added for the codes you have prepared in each question. In order to test your programs in the PDF extension file you send, the parts where the codes are written should be created as text, not as a picture

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!