Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I would to ask for help with python code for this please Threshold Create a general Card class - Card should have at least a
I would to ask for help with python code for this please
Threshold Create a general Card class - Card should have at least a name attribute and _ str _ method to print the string representation of the class - Create three subclasses of the card: Pokmon Card, Energy Card, Trainer Card Create at least 20 instances of the Pokmon card, 7 of the Energy and 7 of the Trainer cards - The instances should be created in the main method and method should be called from: \[ \text { If __ name _ }=={ }^{\prime} \underset{\text { main() }}{ }{ }^{\text {main }} \text { ': } \] Create a list names of deck containing 34 cards. - Print all cards from the deck - Print all card that are instance of Pokmon - Print all card that are instance of Energy card - Print all card that are instance of Trainer card Excellent: Creates a class name player. Player will have a name and list of cards. (Each player will have 17 cards allocated to him randomly from the deck) Create two instances of a players and add the cards to the player randomly. Print the string representation of each player including the cards that he/she may haveStep 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