Description: A program that evaluates a single hand of poker. Show hand and print this type it is. The? Please someone help to me about this issue, I really find big problems when trying to solve my issue.
Your algorithm would be something like the following. In each case, once the value is determined for the "result", stop:
1) College of cards in the highest rank to lowest
2) Determine if all cards have the same color. If so FLUSH = TRUE, FALSE otherwise FLUSH =
3) Determine if the cards are in order. If yes, right = TRUE, if not determine whether the cards are A5432 (Aces count as high or low). If yes, right = TRUE, otherwise FALSE = STRAIGHT.
4) If STRAIGHT FLUSH +, and if the map A = high, result = "result Royal Flush 'other =" Straight Flush "
5) If FLUSH, result = "Flush"
6) If the right result = "right"
7) 4 If the highest ranked cards of the same rank, score = '4 of a kind "
8) 3 If the highest ranked cards of the same rank, so if the bottom 2 ranked card of the same rank, result = "Full House", if not result = '3 of a kind "
9) 2 If the highest ranked cards of same rank, score = '1 pair ", ie result =" no pair "
Search on starting hands poker game you want to play.
Something like that.
best starting hands in Texas Hold'em.
or
best Omaha starting hands.
Good luck and go win the World Series of Poker.
http://www.cardplayer.com/poker-tools/od ...
Posted on May 25, 2010.