Question: ''' Write a method AddMana in the PlanesWalker class that take as arguments a number of mana cards X, and adds mana quantity to the
''' Write a method AddMana in the PlanesWalker class that take as arguments a number of mana cards X, and adds mana quantity to the PlanesWalker as follows:
- The method checks that the PlanesWalker has *at least* X mana cards. If this is NOT TRUE, the method returns False; - If the PlanesWalker has at least X mana cards, the method will look for the first X cards of the mana card list and will add their mana_qty to the PlanesWalker mana_qty. In addition, the value isTapped for the first X cards must be set to True. Finally, the method returns True. ''' import mtg
if __name__ == "__main__": pass
by using python
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
