I need a function that evaluate a hand poker. The deck contains all 54 cards including the two jokers (red & black).
The function have the input parameter a list with 5 cards.
A card object is like:
id -> id of the deck array (0..53)
suit -> 0..3 (hearts, diamonds, clubs, spades)
number -> 0 = joker, 1=ace, 2=deuce ... 11=Jack, 12=queen, 13=king
The poker evaluator function must evaluate the hand and return what type of hand is:
- 5 OF A KIND
- ROYAL FLUSH
- STRAIGHT FLUSH
- 4 OF A KIND
- FULL HOUSE
- 3 OF A KIND
- TWO PAIRS
and mark the selected cards.