This is the first program for a class that I am taking. I am having trouble creating the classes. We were only taught briefly on the subject and then told to complete this project. I guess my first question is how should I set my class "deck" and "card" up? I don't want someone to set the classes up for me. I would only like help.
Create a program to simulate a card game as described below. Use a deck of 30 cards, which contains 10 different values (numbered 1 through 10) and 3 different suits. The suits may be any theme you like (does not have to be hearts, spades, etc.).
Make this a three player game, where two of the players are controlled by the computer, and one player is controlled by the user.
After shuffling, deal all of the cards to the three players. Each player will get 10 cards.
Notes:
1. Make a class named Card, as well as a class named Deck
2. Shuffle the cards by randomly swapping 2000 pairs of Cards
3. Store the players’ hands in arrays of type ‘Card’
The Game:
1. Display the player's 10 cards, but do not show the 2 other hands
2. Have the player 'bid' how many tricks they think they will win
3. If bid is made, the player scores 10 points for each trick bid
4. The computer scores 10 points for each trick made
5. The player loses 10 points for each trick bid if the bid is not made
6. Each time a computer controlled player leads a card, randomly choose a suit and lead the highest card of that suit
7. Each time a computer controlled player has to follow suit, play the highest card if the computer could win the trick, lowest otherwise
8. If a computer controlled player has to 'throw off' due to not having the suit lead, throw the lowest card from the suit it has the most of
9. When any player reaches 100 points, the game ends
What to submit:
Submit source code via email. If you are absent, it is still your responsibility to submit on time. Put group members’ last names in the subject line.
Keep in mind the following:
• Name your source files deck.h, deck.cpp, and main.cpp.
• With invalid data, your program should respond appropriately.
• Each function prototype should have a description, preconditions, and postconditions.
• Test your code when you think you are finished. Try to break it. After you are done trying to break it, I will then try.