How to compare the size of the card?

Card type: flush (9)> Bomb (8)> gourd (7)> ​​flush (6)> Junko (5)> 23 (4)> two pairs (3)> pair (2)> single card ( 1)

In most cases, it is to determine the card type, card type and then more specific the same card, the same card value also compare patterns. This requires more specific cards when speed will be slower.

I think A better solution is: We can in calculating the shape, count this good comparative value of hands such as A (Red 3) A (Box 1) Q (spades 4) Q (Plum 2) 5 (red 3), two pairs of a card-type case, we can represent 3 (card type), 14,14,12,12,05,3 (red in color), 1 (a block of color), 4 (Q color of spades), 2 (Q, plum color), 3 (5 red color) to form a digital 3141412120531423 such, can use this digital direct size comparison.

Guess you like

Origin www.cnblogs.com/kingge/p/11573033.html