Answered step by step
Verified Expert Solution
Link Copied!

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:

  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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 2012 Proceedings Part 2 Lnai 7197

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284892, 978-3642284892

More Books

Students also viewed these Databases questions

Question

2. How does enculturation differ from acculturation?

Answered: 1 week ago

Question

Technology. Refer to Case

Answered: 1 week ago