Chat with us, powered by LiveChat C++ | Wridemy

C++

The mission of this assignment is to realize a “Crazy Eights” card game using a standard 52-card deck. Read the specified link (wikipedia) or watch this video (and others too) to understand how this simple game works out. In this assignment, you will be playing with other 3 people whose card turns are automatically generated according to the next rules:

  1. find the same number of any suit
  2. find the same suit
  3. use any eight and declare the suit of the most occurring suit in hand (e.g., select H if HHHCCDS in hand)
  4. draw from the deck until finding any of the above

You need to implement the card selection in this order. Each player is given 6 cards at the beginning of the game. You are the first player, and anyone who used up all cards will win. Game also ends when all cards in the stockpile are used. You should check all the potential input errors. The first card in the pile may be a crazy eight, in which case use it as a selection condition of suit or reshuffle the pile to choose another non crazy eight card (choice is up to you).  Note that this version of Crazy Eight can discard only one card at a time and needs to draw from deck until an eligible card is found (added 5/1).

You must display all kinds of transactions happening in the progress of the game. At your turn, typing “?” will show hands of others (cheating option). The next session shows an example game sessions.  Observe carefully and adapt this output format as much as possible — points will be deducted if we found yours too much deviated from.

Pile has S10 <--- your turn

  (a) C3  (b) H3  (c) C8  (d) S3  (e) HK  (f) DQ  (g) draw

Which one to play? d

Pile has S3
        Player 1 chose H8
        Player 1 declared suite C
Pile has C*
        Player 2 chose CJ
Pile has CJ
        Player 3 chose CK
Pile has CK <--- your turn

  (a) C3  (b) H3  (c) C8  (d) DQ  (e) HK  (f) draw

Which one to play? a
Pile has C3
        Player 1 chose CQ
Pile has CQ
        Player 2 chose D8
        Player 2 declared suite S
Pile has S*
        Player 3 drawing...
        Player 3 chose S9
Pile has S9 <--- your turn

  (a) HK  (b) H3  (c) C8  (d) DQ  (e) draw

Which one to play? ?
Player 1  (a) D9  (b) H4  (c) C4  (d) HA
Player 2  (a) S7  (b) HJ  (c) SA  (d) SK
Player 3  (a) H5  (b) H6  (c) H2  (d) DA  (e) H10
Which one to play? e

  (a) HK  (b) H3  (c) C8  (d) DQ  (e) D6  (f) draw

Which one to play? f

  (a) HK  (b) H3  (c) C8  (d) DQ  (e) D6  (f) S5  (g) draw

Which one to play? f
Pile has S5
        Player 1 drawing...
        Player 1 chose S6
Pile has S6
        Player 2 chose S7
Pile has S7
        Player 3 drawing...
        Player 3 chose D7
Pile has D7 <--- your turn

  (a) HK  (b) H3  (c) C8  (d) DQ  (e) D6  (f) draw

Which one to play? d
Pile has DQ
        Player 1 chose D9
Pile has D9
        Player 2 drawing...
        Player 2 drawing...
        Player 2 drawing...
        Player 2 chose C9
Pile has C9
        Player 3 drawing...
        Player 3 drawing...
        Player 3 drawing...
        Player 3 chose S8
        Player 3 declared suite H
Pile has H* <--- your turn

  (a) HK  (b) H3  (c) C8  (d) D6  (e) draw

Which one to play? a
Pile has HK
        Player 1 chose HA
Pile has HA
        Player 2 chose HJ
Pile has HJ
        Player 3 chose H5
Pile has H5 <--- your turn

  (a) D6  (b) H3  (c) C8  (d) draw

Which one to play? b
Pile has H3
        Player 1 chose H4
Pile has H4
        Player 2 chose HQ
Pile has HQ
        Player 3 chose H6
Pile has H6 <--- your turn

  (a) D6  (b) C8  (c) draw

Which one to play? b
Which suit you want? D
Pile has D*
        Player 1 drawing...
        Player 1 chose D5
Pile has D5
        Player 2 drawing...
        Player 2 drawing...
        Player 2 chose DK
Pile has DK 
        Player 3 chose D3
Pile has D3 <--- your turn

  (a) D6  (b) draw

Which one to play? a
You won!

[ Final card distributions ]
Player 0
Player 1  (a) C4
Player 2  (a) SK  (b) C2  (c) SA  (d) S4
Player 3  (a) H10  (b) SJ  (c) H2  (d) DA

In the game, Player 0 represents you and Player 1 through 3 are (machine-implemented) family member competitors. Refer to video lectures provided on April 10 and 15. Start early as one weekend not enough for the completion of the work although the total amount of coding is not more than 180 lines.

Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.

Do you need an answer to this or any other questions?

About Wridemy

We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.

How It Works

To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Are there Discounts?

All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.

Hire a tutor today CLICK HERE to make your first order

Related Tags

Academic APA Writing College Course Discussion Management English Finance General Graduate History Information Justify Literature MLA