View Single Post
Old 07-13-2019, 11:17 AM  
VRPdommy
Too lazy to set a custom title
 
Industry Role:
Join Date: Oct 2014
Posts: 12,531
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.
VRPdommy is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote