Determine the poker hand winner from two hands of cards (each hand will contain the same number of cards between five and thirteen cards each). Output shoud be 0 - for tie, 1 - for hand1 winner, 2 - for for hand 2 winner. Card hands will be provided as a table like the following:
hand=table([9 3 10 7 13 12 11]',[3 2 3 4 3 3 3]');
hand.Properties.VariableNames={'value','suit'};
where card value is listed first: 2:10,jack,queen,king,ace == 1:13 and suits are listed second: clubs, diamonds, hearts, spades == 1:4. Note: (A 2 3 4 5) is considered a straight where the A acts low, therefore the kicker would be 5.

Solution Stats

8 Solutions

3 Solvers

Last Solution submitted on Apr 04, 2022

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...