Answered step by step
Verified Expert Solution
Link Copied!

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 pleaseimage text in transcribedimage text in transcribedimage text in transcribed

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 have

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Ehs 2.0 Revolutionizing The Future Of Safety With Digital Technology

Authors: Tony Mudd

1st Edition

B0CN69B3HW, 979-8867463663

More Books

Students also viewed these Databases questions