Computer Science Canada Poker Hand Values |
Author: | berf [ Thu Jun 22, 2006 1:29 pm ] | ||
Post subject: | Poker Hand Values | ||
This is what i have so far, this procedure is what i use to determine the value of the hand
The pair,three of a kind, etc. work but Im not sure how to get the high card to work. I know how it needs to be done (set variable to 0, if hand(hc) > high_card) hand(hc) := high_card) im just not sure how to put it into that loop. I hope you can understand my problem. Any help would be great |
Author: | Clayton [ Thu Jun 22, 2006 2:46 pm ] |
Post subject: | |
in your hand value procedure just add a for loop to check for the high card after or before you check for combinations of cards in the hand ![]() |