Card Game

I have to write a card game and I have no idea how to do so please help me. The card game has to meet the following criteria:


 Write a program for “Guess My Card”. (Hint: Start with the High Scores)
 Use the following algorithms:
 Vectors to create a list of cards (Do NOT list all 52 cards! Takes too long!).
• Select a card format (or make on of your own):
• 3Clubs, 1Spade, QHearts, ADiamonds
• 3-Clubs, 1-Spade, Q-Hearts, A-Diamonds
• HeartsQ, Clubs3, Spade1, DiamondsA
• Hearts-Queen, Clubs-3, Spade-1, Diamonds-Ace
 sort() – sort the cards in ascending order. Depending on how you formatted the cards it will be either by number or suit. Display the sorted deck.
 random_shuffle() – shuffle the card deck (like in all good card tricks!). Display the shuffled deck.
 Ask the gamer to enter a card – provide the format. Use the Find() function to see if the card entered was in the “deck”. Provide appropriate messages.
 In the “live” game, don’t display the sorted – wouldn’t want the gamer to see ahead of time! The shuffled deck maybe displayed because people will assume it is complete.
Last edited on
Topic archived. No new replies allowed.