subject

Write this in python and screenshotted you

now we want a way to make our monsters fight!

before two monsters can fight, we need to give two new class methods that update their stats.

implement a method for "win_fight" and "lose_fight". win_fight should add 5 to the monster’s self. exp, and reset their current_hp to their max_hp. lose_fight should also reset their hp, but only adds 1 exp to self. exp.

now write a function that takes two instances of the monster class as its input and makes them "fight". a fight goes as follows:

the monster entered as the first function parameter always goes first.

each monster takes a turn using one attack move.

loop over all attacks from most powerful to least powerful attack until there is a winner. if there is a tie in hit points for an attack select using alphabetical order.

an attack is always successful, and decreases the opponent’s current_hp by the given number of points. monsters continue taking turns until one of them reaches current_hp less than or equal to 0, at which point the win_fight and lose_fight methods should be invoked. once the fight is complete, return the round number in which the fight ended, the monster that won and the list of attacks the winning monster used. if both monsters only have "wait" as an attack, return -1, none, none

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 04:00
Another name for addicting games.com
Answers: 1
question
Computers and Technology, 23.06.2019 04:31
Selling a product through an electronic medium is
Answers: 1
question
Computers and Technology, 24.06.2019 06:30
Ineed to know the anwser to all these questions
Answers: 2
question
Computers and Technology, 24.06.2019 10:20
Identify the publisher in this citation: carter,alan.a guide to entrepreneurship.new york: river’2008.print.
Answers: 3
You know the right answer?
Write this in python and screenshotted you

now we want a way to make our monsters figh...
Questions
question
Mathematics, 23.07.2019 02:00
question
Mathematics, 23.07.2019 02:00
Questions on the website: 13722367