Answered step by step
Verified Expert Solution
Question
1 Approved Answer
in python 3 please 9?. .d 94%. 12:19 PM * Classo3.pdf Kerry Ojakian's CSI 32 Class Class Assignment #3 General Instructions . You may work
in python 3 please
9?. .d 94%. 12:19 PM * Classo3.pdf Kerry Ojakian's CSI 32 Class Class Assignment #3 General Instructions . You may work in a group of at3 students. . Classworkb put in a your dropbox folder;f there are multiple parts, create a single folder for the class assignment. Make sure you give clear names to your files and folders. Make sure that you indicate all the people in your group When you are done, ema me to tell me who's folder the class work is in; also, tell me who is in your group. Without this email, you may not get credit for the assignment! The Assignment Write 3 classes: Cardst, Had, and Deck, where Hand and Deck are both children of CardList Cardist is mean to be an "abstract lass whie Hand is a player's hand and Deck is a deck of cards. For simplicity, a card is just an integer between 1 and 52. The classes should have the followig methods: CardList: Stores an ordered set of cards. 1. talier: Takes n iputs and starts with an empty set of cards. 2. AddCard: Takes a single integer betwee and 52 as nput and adds this to the top of the st of cards only if the card is not already in the list of cards. 3. RemoveCard: Takes a single integer between and 52 as input, and removes this card if it is the ist of cad, d otherwise does nothing Deck: Stores a set of cards meant to be a deck 1. Initializer: Takes no input, but starts with all 52 cards shuffed in some order 2. ReoveCard: Takes no input, and returns the top card; should use RemoveCard of its parent class. Hand: Stores a set of cards meant to be a player's hand 1. Score: Returns the sum of the values in the players hand, which we take to be its score
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