Question: 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:

  1. 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!