|
Give all winning poker hands a numeric value starting with 999 for a royal flush downward to 50 for a pair. Keeping a original numeric value for the card itself... 1-14, remembering aces are high and low card depending on application. (ace high straight beats a king high straight)
Then you can also evaluate high card on a draw.
You will have a bunch of math evaluations on/for condition, especially the ace.
Java is probably the right choice for this stuff because of it's flexibility and minimal code.
|