Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write the algorithm for setting up to play a card game called Vaark. You are writing the algorithm for the dealer. Relevant rules of Vaark:
- Write the algorithm for setting up to play a card game called Vaark. You are writing the algorithm for the dealer.
Relevant rules of Vaark:
- Is played by 4 people. The dealer is one of the four players.
- Uses standard/poker/bridge deck of 52 playing cards
- Cards must be shuffled and cut.
- After cards are shuffled and cut, one person (the dealer) distributes cards one-card-at-a-time, in rotation, clockwise, face-down, so that each person receives six cards. The distribution should start with the person to the dealers left.
- Remaining cards (after dealing) are placed in a pile face-down in the center of the table. This is the remainder deck.
- Top card of the remainder deck is turned face-up and placed next to the remainder deck.
For purposes of this exercise, assume that:
- dealer has been chosen
- cards have already been shuffled and cut
- dealer does not know what dealing is (you cannot use the term deal or dealing....do not define dealing for the dealer.use other terms to convey the message)
- dealer does not know what clockwise means(you cannot use the term clockwise....do not define clockwise for the dealer.use other terms to convey the message)
- dealer does know what face-up and face-down are
List any additional assumptions you must make. (for example.Does the physical position of the players make a difference in whether your algorithm will work ? if so, you may need to make an assumption about that)
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