I need to make a 3 classes that do this:
Classes: Deck-Of-Cards, Card, Shuffle-Deck
- Deck-Of-Cards that store 52 objects of the Card Class
- Shuffle-Deck (shuffles the deck,deals a card from the deck,keeps track how many cards are left in the deck)
- Card I guess is the driver class it really does not give me to much info on it.
It says that the Card class was from chapter 4 in my book but I can't find it anywhere expect as a project that we never did. And all it wanted was one class called card that represents a standard playing deck and deals like 5 cards out at random.
So I started to work on DeckOfCards first to hold the 52 objects so I thought of puting them as enum types in.
so I have it like this:
So to me I think thats all I need to do to hold in deck-of-cards since I think that holds the 52 to objects.
So then I moved to shuffle-Deck and did this:
as you can see not much since I am unable to get past a couple things like how do I shuffle this deck? I was going to use a random but problems I can see I will face is first how do I shuffle them as a whole? Like right now there are 2 enum types(Rank and Suit) how do I combine them together so that it will shuffle all 52 cards as a whole and still know that they belong to different suits.
So I need help and go from there.
*Deck-Of-Cards -- This is not a mistake I put those dashes on purpose in hopes to make it a bit harder to find on the search engine since I am sure many ppl will have trouble with this and will be looking for the answers..... So I don't them to just copy my work that I been working hard on....