Question
I trying to write a program in C++ using vectors its called a card shuffle program and I don't know where to start. Here is
I trying to write a program in C++ using vectors its called a card shuffle program and I don't know where to start. Here is a copy of what is required for this assignment.
This is the first part of a project to deal 13 cards to 4 players from a shuffled deck of 52 cards. Each card in the deck will be represented by an integer from 0 to 51. We will see later how to translate the integer into a string representing a card. The deck and each hand will be represented by a vector of ints. The vectors should be declared in the main function and not declared globally.
void unwrap(deck) - load the deck vector with integers in order from 0 to 51
void shuffle(deck) - shuffle the deck vector using random_shuffle method - see pages 1008 and 1014 in the text (you'll need to "#include
You can use the debugger to show these functions are working correctly. Future labs will have you write a "deal" function and "showHand" function
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