Find Jobs
Hire Freelancers

C++ Programming Card Deck

$10-30 USD

Kansellert
Lagt ut over 6 år siden

$10-30 USD

Betalt ved levering
Write a C++ program that plays the card game of Hearts. The C++ program should include your overloaded < operator, sort function, and shuffle function. The program must have these features: • Four hands only • At least three classes – Card, Deck, and Player. • Use the try-throw-catch statements when a player tries to play an incorrect card, such as not following suit on a trick (see rules of the game). Please keep the main program simple. Most of our logic should be in member functions for classes. The display should look something like this: HAND 1 HAND 2 HAND 3 HAND 4 ---------- ---------- ----------- ----------- 3 points 11 points 2 points 0 points ----------- ----------- ----------- ----------- Spade Ace Spade 5 Heart 7 Spade 10 Spade 2 Heart Jack Diamond Ace Spade 4 Heart Queen Club 10 Diamond King Heart 2 Heart 4 Club 3 Diamond Queen Diamond Jack Diamond Jack Club 2 Club 9 Diamond 8 . . . . . . . . . . . . CURRENT PLAY: Club 4 Club Queen enter card: Object of the Game The player with the lowest score wins. Scoring At the end of each game, players count the number of hearts they have taken as well as the queen of spades. A total of 26 points are awarded: • Each heart counts as 1 point • Queen of spades counts as 13 points When one player takes all 13 hearts and the queen of spades, instead of losing 26 points, that player scores zero and each opponent scores 26 points. This is called ‘shooting the moon’. The Deal There are four players, each with 13 cards initially. Players sit around a table. To deal, start with any player and deal cards one at time clockwise. The Play Play proceeds in rounds, in which each player plays one card, in clockwise order around the table. Playing the first card of a round is called ‘leading’. The player holding the 2 of clubs leads the first round. Subsequently, the winner of one round leads the next round. Following the first card of a round, the remaining players must play a card in the same suit. A player with no cards in this suit may play a card in any other suit. The highest card of the suit that was led wins the round. The winner of a round and accumulates points for the queen of spades or any hearts. Rounds are sometimes called ‘tricks’. Challenge 1 Enable games with three or five players. Challenge 2 Implement these three special rules of play: • After cards are dealt but before the first trick, each player selects three cards and passes them to the player on the right (clockwise). • If a player has no clubs when the first trick is led, a heart or the queen of spades cannot be discarded. • Hearts may not be led until a heart or the queen of spades has been discarded. (The queen of spades can be led at any time.)
Prosjekt-ID: 15772829

Om prosjektet

9 forslag
Eksternt prosjekt
Aktiv 6 år siden

Ønsker du å tjene penger?

Fordeler med budgivning på Freelancer

Angi budsjettet og tidsrammen
Få betalt for arbeidet ditt
Skisser forslaget ditt
Det er gratis å registrere seg og by på jobber
9 frilansere byr i gjennomsnitt $33 USD for denne jobben
Brukeravatar
Hello, I'm Smile Song, developer in China. I'm interesting your project very well I'm a Good SQL, C++, c#, Python, .Net, swift, object-c, OpenCV, Math, Java, Algorithm expert. Relevant Skills and Experience I m quite well experienced in these jobs. Let's go ahead with me I want to service for you continously. Proposed Milestones $23 USD - initial milestone Additional Services Offered $1 USD - initial milestone
$23 USD om 1 dag
4,9 (927 omtaler)
9,2
9,2
Brukeravatar
Hi! I'm interesting your project very well. I am mastering c++ and I'm a good Mathematician. And also I have many experience and good skill about algorithm. Let's go ahead with me Stay tuned, I'm still working on this proposal.
$30 USD om 1 dag
5,0 (326 omtaler)
7,7
7,7
Brukeravatar
Hi there, I went through the requirements and I would like to do this project if given the opportunity. Let me know if you are interested. Thanks. Relevant Skills and Experience C++ Programming Proposed Milestones $30 USD - Project Milestone
$30 USD om 1 dag
4,9 (1570 omtaler)
7,9
7,9
Brukeravatar
120usd for this project Relevant Skills and Experience I am very proficient in c and c++. I have 16 years c++ developing experience now, and have worked for more than 6 years. My work is online game developing, and mainly focus on client side. Proposed Milestones $120 USD - Finish this project
$120 USD om 2 dager
4,8 (160 omtaler)
7,1
7,1
Brukeravatar
Hello Sir. I have 4 years experience in C++ and Java Proramming. I can provide 100% quality work within the deadline at a very low rate. Relevant Skills and Experience C++ Programming Proposed Milestones $10 USD - Complete the Project
$10 USD om 1 dag
5,0 (5 omtaler)
2,8
2,8
Brukeravatar
Lets chat and discuss about the work and price. No need to pay anything upfront first check the work and if you happy with work then pay me. You can pay me lowest price. Thanks Relevant Skills and Experience 12 Year Experience in Programming. I can give you best work. Thanks Proposed Milestones $12 USD - I will complete your work as per the guidelines and will deliver you according to time deadline.
$12 USD om 1 dag
4,7 (7 omtaler)
2,4
2,4
Brukeravatar
Let’s chat and discuss about price and work. 12 years experience in same filed you will get 100% correct work. No need to pay upfront money first check work quality and if you satisfied then pay. Relevant Skills and Experience 12 years experience Proposed Milestones $20 USD - I will complete your work as per the guidelines and will deliver you according to time deadline.
$20 USD om 1 dag
0,0 (0 omtaler)
0,0
0,0
Brukeravatar
I have expert too do this fast and fast.. Relevant Skills and Experience C++ software architecture c# Asp.Net
$25 USD om 1 dag
0,0 (0 omtaler)
0,0
0,0

Om klienten

UNITED STATESs flagg
United States
0,0
0
Medlem siden jun. 15, 2017

Klientbekreftelse

Takk! Vi har sendt deg en lenke for at du skal kunne kreve din gratis kreditt.
Noe gikk galt. Vær så snill, prøv på nytt.
Registrerte brukere Publiserte jobber
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Forhåndsvisning innlasting
Tillatelse gitt for geolokalisering.
Påloggingsøkten din er utløpt og du har blitt logget ut. Logg på igjen.