![]() |
|
#1
|
|||
|
|||
Poker punch and run program problemI am a beginner in C++ and i have a problem.
this is the detail information of the problem. You will deal a hand of 5 cards and show those cards and check for the following. You must choose two parts. Part “1” is required and three of parts “2” – “7”. So your program should check for at least 4 kinds of poker hands. Each part done correctly is worth 25 points. Part 1. Find a pair. 2. Find three of a kind. 3. Find four of a kind. 4. Find two pair. 5. Find a flush. 6. Find a straight flush. 7. Find a full house. Requirements: 1. Do not include any unused header files. 2. Use arrays. 3. Use a class 4. No global variables 5. Enclose the program so the poker hand can be repeatedly dealt, until the user chooses to quit. 6. Must have a “programmed by …” inline function that works. Hints: 1. You will need a double scripted array for the card deck and the dealt cards. 2. The rows are the suits of the cards (i.e. hearts, clubs, etc…) 3. The columns are the faces of the cards (i.e. ace, 2, 3, etc…) 4. A pair is two cards with the same faces. this is what i have, can somebody help please!!!!!!!!!!!!!!!!!!!!!!! CPP / C++ / C Code:
Last edited by admin : 11-Aug-2008 at 16:19.
Reason: Please insert your example C/C++ codes between [CPP] and [/CPP] tags
|
|||
|
#2
|
|||
|
|||
Re: Poker punch and run program problemQuote:
Upon first inspection, it appears you need to address the following issues:
Last edited by ocicat : 11-Aug-2008 at 16:13.
|
|
#3
|
|||
|
|||
Re: Poker punch and run program problemQuote:
i don't even know how to play poker or understands the rules of it. i need guideline as to what to do. algorithm might help me. |
|
#4
|
|||
|
|||
Re: Poker punch and run program problemQuote:
From what was described in the initial requirements, you don't need to know poker. Everything else can be discerned from thinking how to manage 52 physical cards, & knowing how pairs, flushes, etc. are defined. If you don't know these descriptions, they can be found at numerous sites across the Internet, one of which is: http://entertainment.howstuffworks.c...basics-ga1.htm My suggestion to you is to first:
Last edited by ocicat : 11-Aug-2008 at 16:33.
|
Recent GIDBlog
Problems with the Navy (Chiefs) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The