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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started