On Two Plus Two poker hand evaluator, how do you get the best 5 cards combination out of the 7 that you passed to it?

前端 未结 4 640

Is it possible to extract that info from the equivalence value?

I understand that the higher the equivalence value the better. Category and rank can also be extracte

4条回答
  •  自闭症患者
    2020-12-31 21:11

    Old post but I'll give it a shot. If you're using a table lookup (e.g., the 7-card arrays mentioned above, aka the Ray Wotton method), construct a second table with your target information in the same slot positions. Example: I ended up in slot 167,452 to find my eval, now I'll look at my other array in slot 167,452 to find my 5-card hand.

    A single card can be represented by 6 bits - 2 for the suit and 4 for the rank. 30 bits would give you the entire 5-card hand. Maybe not quite that simple, but that's the general idea. I've used this exact technique for some stuff I did awhile back.

    Alternatively, you could pass in all the 7-choose-5-card combinations (21 of 'em I believe) and find out which matches the original eval.

提交回复
热议问题