# My Ship Sails Game with C++

My Ship SailsÂ is a great kids card game.Â ReadÂ thisÂ to understand the rule to play.Â The mission of the gameÂ is to collectÂ 7Â cards of theÂ “same suit”Â you choose.Â You can sail out your ship if you haveÂ 7Â cards of the same suit.TheÂ card numbers are unrelated in this game.

You need to pass one unnecessaryÂ card to your neighboring player,Â like a clockwise turn agreed by all players.Â So,Â others do in the same way at the same time.

In thisÂ assignment,Â you are going to play with otherÂ 4Â family members and you are to pass out your unnecessary card to playerÂ 1,Â and then playerÂ 1Â passes one card to playerÂ 2,Â and so on.Â That means that you are playerÂ 0Â and you will be passed theÂ 7th card from playerÂ 4.Â

YouÂ can see all of yourÂ 7Â card set.Â You are given a choice to pick one card amongÂ 7Â to pass out playerÂ 1.Â The playersÂ 1Â throughÂ 4Â will do the same thing with someÂ intellectual ability in that each ofÂ them will choose the most unlikely cardÂ (i.e.,Â the minimum number of occurrences of suit)Â to pass to the next player.Â My son played with my implementation for one hour to finally give up…Â Can you win?

The implementation needs to show which card is passed among the playersÂ (as a hint).Â Also typing ‘?’ will show all the players’ cardsÂ (as a cheating).Â The game ends if any ofÂ 5Â players won by collecting the seven cards of the same suits.Â Your implementation must show the hands of other players in the game end.

Implementing this game is not hard if this is done properly in our learnedÂ object-orientedÂ way:Â note that a card is a structure of number and suit,Â a player has a vector of card,Â and the game has a vector of cards as well as a vector of players.Â See the next example game session.Â For instance,Â SJ meansÂ “Jack of Spades.”Â My implementation having a full set of comments is less thanÂ 150Â lines.Â Good luck.

```Â  Â (a) H5 Â  (b) DK Â  (c) S2 Â  (d) C3 Â  (e) HA Â  (f) S5 Â  (g) C2

Which one to replace? a

Hint: player 0 passed H5 to player 1
Hint: player 1 passed S6 to player 2
Hint: player 2 passed H7 to player 3
Hint: player 3 passed S10 to player 4
Hint: player 4 passed D9 to player 0

Â  Â (a) C2 Â  (b) DK Â  (c) S2 Â  (d) C3 Â  (e) HA Â  (f) S5 Â  (g) D9

Which one to replace? e

Hint: player 0 passed HA to player 1
Hint: player 1 passed C10 to player 2
Hint: player 2 passed SK to player 3
Hint: player 3 passed CA to player 4
Hint: player 4 passed C5 to player 0

Â  Â (a) C2 Â  (b) DK Â  (c) S2 Â  (d) C3 Â  (e) D9 Â  (f) S5 Â  (g) C5

Which one to replace? ?
Player 1 Â  (a) HQ Â  (b) H5 Â  (c) D6 Â  (d) H2 Â  (e) HK Â  (f) D2 Â  (g) HA
Player 2 Â  (a) S6 Â  (b) D10 Â  (c) D4 Â  (d) DA Â  (e) S3 Â  (f) DQ Â  (g) C10
Player 3 Â  (a) H7 Â  (b) DJ Â  (c) H9 Â  (d) H6 Â  (e) D5 Â  (f) CK Â  (g) SK
Player 4 Â  (a) H8 Â  (b) S10 Â  (c) C8 Â  (d) H3 Â  (e) S9 Â  (f) S4 Â  (g) CA
Which one to replace? c

Hint: player 0 passed S2 to player 1
Hint: player 1 passed D6 to player 2
Hint: player 2 passed C10 to player 3
Hint: player 3 passed SK to player 4
Hint: player 4 passed C8 to player 0

Â  Â (a) C2 Â  (b) DK Â  (c) C5 Â  (d) C3 Â  (e) D9 Â  (f) S5 Â  (g) C8

Which one to replace? f
Hint: player 0 passed S5 to player 1
Hint: player 1 passed S2 to player 2
Hint: player 2 passed S6 to player 3
Hint: player 3 passed CK to player 4
Hint: player 4 passed CA to player 0

Â  Â (a) C2 Â  (b) DK Â  (c) C5 Â  (d) C3 Â  (e) D9 Â  (f) C8 Â  (g) CA
Which one to replace? b

Hint: player 0 passed DK to player 1
Hint: player 1 passed S5 to player 2
Hint: player 2 passed S3 to player 3
Hint: player 3 passed S6 to player 4
Hint: player 4 passed CK to player 0

Â  Â (a) C2 Â  (b) CA Â  (c) C5 Â  (d) C3 Â  (e) D9 Â  (f) C8 Â  (g) CK

Which one to replace? x
Wrong input! Which one to replace? e

Hint: player 0 passed D9 to player 1
Hint: player 1 passed D2 to player 2
Hint: player 2 passed S2 to player 3
Hint: player 3 passed S3 to player 4
Hint: player 4 passed H8 to player 0

Â  Â (a) C2 Â  (b) CA Â  (c) C5 Â  (d) C3 Â  (e) CK Â  (f) C8 Â  (g) H8

Which one to replace? e

Hint: player 0 passed CK to player 1
Hint: player 1 passed DK to player 2
Hint: player 2 passed S5 to player 3
Hint: player 3 passed S2 to player 4
Hint: player 4 passed H3 to player 0

My Ship Sails! --- Player 2 Won...
My Ship Sails! --- Player 4 Won...

[ Final card distributions ]
Player 0 Â  (a) C2 Â  (b) CA Â  (c) C5 Â  (d) C3 Â  (e) H8 Â  (f) C8 Â  (g) H3
Player 1 Â  (a) HQ Â  (b) H5 Â  (c) HA Â  (d) H2 Â  (e) HK Â  (f) D9 Â  (g) CK
Player 2 Â  (a) D6 Â  (b) D10 Â  (c) D4 Â  (d) DA Â  (e) D2 Â  (f) DQ Â  (g) DK
Player 3 Â  (a) H7 Â  (b) DJ Â  (c) H9 Â  (d) H6 Â  (e) D5 Â  (f) C10 Â  (g) S5
Player 4 Â  (a) S6 Â  (b) S10 Â  (c) SK Â  (d) S3 Â  (e) S9 Â  (f) S4 Â  (g) S2```

Â

Basic features
• Free title page and bibliography
• Unlimited revisions
• Plagiarism-free guarantee
• Money-back guarantee
On-demand options
• Writer’s samples
• Part-by-part delivery
• Overnight delivery
• Copies of used sources
Paper format
• 275 words per page
• 12 pt Arial/Times New Roman
• Double line spacing
• Any citation style (APA, MLA, Chicago/Turabian, Harvard)

# Our guarantees

We value our customers, and so ensure that our papers are 100 percent original. Our Team of professionals does not miss the mark; they ensure that step by step each paper is written uniquely. We never duplicate or work as we compare papers rest assured. We deliver our work a day before time to ensure that you don’t miss your deadlines. It is not only doing the work but delivering it at the right time. We capture the consequences of late remittances. .

### Zero-plagiarism guarantee

At popularessaywriters.com, our professional writers know the consequence plagiarism does for our clients. We have updated software’s such as article checker and copyscape to check for originality of the custom papers before submission of the final paper to the you. Our guarantee to the customer is that we will write 100% original papers for them that are quality, timely and of low cost. We have experienced professional and competent PhD writers who will write quality custom papers for you..

### Free-revision policy

. At popularessaywriters.com, we are proud to provide top-quality Essay writing service to our esteemed customers. We are ready to take up that challenging academic assignment that is giving you sleepless nights and simplify it for you according to your desired requirements. We are willing to revise your paper if it does not meet your requirements. At popularessaywriters.com, we do not compromise with quality; thus, we offer unlimited free revisions until the customer is satisfied with their custom paper. Our unlimited free revision services are provided under the following terms:.. .

Popularessawriters.com knows that client’s information is an essential tool for our company. It means that whatever the client requests from our service is kept strictly confidential. It means that whoever writes for this company understands the terms and conditions hence you should not be worried because you will never see your work somewhere else...

### Fair-cooperation guarantee

Rest assured that we will always be attentive to your needs and requirements. We belief in the phrase treat your neighbour as you would want them to treat you. We leave nothing to chance and always look forward to a good interaction with each other.. .

## Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
\$26
The price is based on these factors: