# BEGIN Problem 12 @classmethod def action(self, gamestate): def reduce_health(self, amount):class QueenAnt(ScubaThrower): # END Problem 12 “””The Queen of the colony. The game is over if a bee enters her place.””” name = ‘Queen’ food_cost = 7 # OVERRIDE CLASS ATTRIBUTES HERE is_waterproof = True # BEGIN Problem 12 implemented = True # Change to True to view in the GUI # END Problem 12 def construct(cls, gamestate): “”” Returns a new instance of the Ant class if it is possible to construct, or returns None otherwise. Remember to call the construct() method of the superclass! “”” # BEGIN Problem 12 “*** YOUR CODE HERE ***” # END Problem 12 “””A queen ant throws a leaf, but also doubles the damage of ants in her tunnel. “”” # BEGIN Problem 12 if self.queen == False: Insect.reduce_health(self,self.health) else: ScubaThrower.action(self,self.health) curr = self.place.exit while curr.exit: if curr.ant: if curr.ant.damage_double == False: curr.ant.damage*=2 curr.ant.damage_double = True curr = curr.exit # END Problem 12 “””Reduce health by AMOUNT, and if the QueenAnt has no health remaining, signal the end of the game. “”” # BEGIN Problem 12 if self.queen: if amount>= self.health: ants_lose() else: Insect.reduce_health(self, amount) else: Insect.reduce_health(self, amount) # END Problem 12all the code with excption of the bold part should correct. I just need help with the construct function.Computer ScienceEngineering & TechnologyPython Programming EECS MISC
solved : # BEGIN Problem 12 @classmethod def action(self, gamest
How it works
- Paste your instructions in the instructions box. You can also attach an instructions file
- Select the writer category, deadline, education level and review the instructionsÂ
- Make a payment for the order to be assigned to a writer
- Â Download the paper after the writer uploads itÂ
Will the writer plagiarize my essay?
You will get a plagiarism-free paper and you can get an originality report upon request.
Is this service safe?
All the personal information is confidential and we have 100% safe payment methods. We also guarantee good grades
LET THE PROFESSIONALS WRITE YOUR PAPER!