Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Solution 318560

Submitted on 12 Sep 2013 by James

Correct

318Size
Leading solution size is 51.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test
Code Input and Output
1
Pass
 
%%
people = 5;
cardsDelt = 5;
isJokerIn = 0;
[dealtDeck, deckLeftover] = Poker_Deal(people ,cardsDelt ,isJokerIn)
deckCheck = {'2h'; '3h'; '4h'; '5h'; '6h'; '7h'; '8h'; '9h'; '10h'; 'jh'; 'qh'; 'kh'; 'ah'; '2d'; '3d'; '4d'; '5d'; '6d'; '7d'; '8d'; '9d'; '10d'; 'jd'; 'qd'; 'kd'; 'ad'; '2s'; '3s'; '4s'; '5s'; '6s'; '7s'; '8s'; '9s'; '10s'; 'js'; 'qs'; 'ks'; 'as'; '2c'; '3c'; '4c'; '5c'; '6c'; '7c'; '8c'; '9c'; '10c'; 'jc'; 'qc'; 'kc'; 'ac'}
h = (sum(sum(ismember(deckCheck,dealtDeck))) == 25) & ~issorted(reshape(dealtDeck,25,1));
g = (sum(ismember(deckCheck,deckLeftover)) == (52-25)) & ~issorted(deckLeftover);
y_correct = g&h;
assert(isequal(g,h))
deckCheck =
    '2h'
    '3h'
    '4h'
    '5h'
    '6h'
    '7h'
    '8h'
    '9h'
    '10h'
    'jh'
    'qh'
    'kh'
    'ah'
    '2d'
    '3d'
    '4d'
    '5d'
    '6d'
    '7d'
    '8d'
    '9d'
    '10d'
    'jd'
    'qd'
    'kd'
    'ad'
    '2s'
    '3s'
    '4s'
    '5s'
    '6s'
    '7s'
    '8s'
    '9s'
    '10s'
    'js'
    'qs'
    'ks'
    'as'
    '2c'
    '3c'
    '4c'
    '5c'
    '6c'
    '7c'
    '8c'
    '9c'
    '10c'
    'jc'
    'qc'
    'kc'
    'ac'
leftover =
  Columns 1 through 16
    48    12    22    39    40    49    27    29    52    37    24    33     1    25     2    46
  Columns 17 through 27
    45    32    10    18    42    26    47    43     9    14    50
dealtDeck =
    '6h'    []    []    []    []
      []    []    []    []    []
      []    []    []    []    []
      []    []    []    []    []
      []    []    []    []    []
dealtDeck =
    '6h'    '5d'    []    []    []
      []      []    []    []    []
      []      []    []    []    []
      []      []    []    []    []
      []      []    []    []    []
dealtDeck =
    '6h'    '5d'    '4h'    []    []
      []      []      []    []    []
      []      []      []    []    []
      []      []      []    []    []
      []      []      []    []    []
dealtDeck =
    '6h'    '5d'    '4h'    '9h'    []
      []      []      []      []    []
      []      []      []      []    []
      []      []      []      []    []
      []      []      []      []    []
dealtDeck =
    '6h'    '5d'    '4h'    '9h'    '7h'
      []      []      []      []      []
      []      []      []      []      []
      []      []      []      []      []
      []      []      []      []      []
dealtDeck =
    '6h'    '5d'    '4h'    '9h'    '7h'
    'ah'      []      []      []      []
      []      []      []      []      []
      []      []      []      []      []
      []      []      []      []      []
dealtDeck =
    '6h'    '5d'    '4h'    '9h'    '7h'
    'ah'    '4d'      []      []      []
      []      []      []      []      []
      []      []      []      []      []
      []      []      []      []      []
dealtDeck =
    '6h'    '5d'    '4h'    '9h'    '7h'
    'ah'    '4d'    '5h'      []      []
      []      []      []      []      []
      []      []      []      []      []
      []      []      []      []      []
dealtDeck =
    '6h'    '5d'    '4h'    '9h'    '7h'
    'ah'    '4d'    '5h'    '8d'      []
      []      []      []      []      []
      []      []      []      []      []
      []      []      []      []      []
dealtDeck =
    '6h'    '5d'    '4h'    '9h'    '7h'
    'ah'    '4d'    '5h'    '8d'    '9d'
      []      []      []      []      []
      []      []      []      []      []
      []      []      []      []      []
dealtDeck =
    '6h'    '5d'    '4h'    '9h'    '7h'
    'ah'    '4d'    '5h'    '8d'    '9d'
    '8h'      []      []      []      []
      []      []      []      []      []
      []      []      []      []      []
dealtDeck =
    '6h'    '5d'    '4h'    '9h'    '7h'
    'ah'    '4d'    '5h'    '8d'    '9d'
    '8h'    '9s'      []      []      []
      []      []      []      []      []
      []      []      []      []      []
dealtDeck =
    '6h'    '5d'    '4h'    '9h'    '7h'
    'ah'    '4d'    '5h'    '8d'    '9d'
    '8h'    '9s'    'kc'      []      []
      []      []      []      []      []
      []      []      []      []      []
dealtDeck =
    '6h'    '5d'    '4h'    '9h'    '7h'
    'ah'    '4d'    '5h'    '8d'    '9d'
    '8h'    '9s'    'kc'    'js'      []
      []      []      []      []      []
      []      []      []      []      []
dealtDeck =
    '6h'    '5d'    '4h'    '9h'    '7h'
    'ah'    '4d'    '5h'    '8d'    '9d'
    '8h'    '9s'    'kc'    'js'    'qh'
      []      []      []      []      []
      []      []      []      []      []
dealtDeck =
    '6h'    '5d'    '4h'    '9h'    '7h'
    'ah'    '4d'    '5h'    '8d'    '9d'
    '8h'    '9s'    'kc'    'js'    'qh'
    '3d'      []      []      []      []
      []      []      []      []      []
dealtDeck =
    '6h'    '5d'    '4h'    '9h'    '7h'
    'ah'    '4d'    '5h'    '8d'    '9d'
    '8h'    '9s'    'kc'    'js'    'qh'
    '3d'    '3s'      []      []      []
      []      []      []      []      []
dealtDeck =
    '6h'    '5d'    '4h'    '9h'    '7h'
    'ah'    '4d'    '5h'    '8d'    '9d'
    '8h'    '9s'    'kc'    'js'    'qh'
    '3d'    '3s'    '7d'      []      []
      []      []      []      []      []
dealtDeck =
    '6h'    '5d'    '4h'    '9h'    '7h'
    'ah'    '4d'    '5h'    '8d'    '9d'
    '8h'    '9s'    'kc'    'js'    'qh'
    '3d'    '3s'    '7d'    '6s'      []
      []      []      []      []      []
dealtDeck =
    '6h'    '5d'    '4h'    '9h'    '7h'
    'ah'    '4d'    '5h'    '8d'    '9d'
    '8h'    '9s'    'kc'    'js'    'qh'
    '3d'    '3s'    '7d'    '6s'    'jd'
      []      []      []      []      []
dealtDeck =
    '6h'     '5d'    '4h'    '9h'    '7h'
    'ah'     '4d'    '5h'    '8d'    '9d'
    '8h'     '9s'    'kc'    'js'    'qh'
    '3d'     '3s'    '7d'    '6s'    'jd'
    '10s'      []      []      []      []
dealtDeck =
    '6h'     '5d'    '4h'    '9h'    '7h'
    'ah'     '4d'    '5h'    '8d'    '9d'
    '8h'     '9s'    'kc'    'js'    'qh'
    '3d'     '3s'    '7d'    '6s'    'jd'
    '10s'    '5s'      []      []      []
dealtDeck =
    '6h'     '5d'    '4h'    '9h'    '7h'
    'ah'     '4d'    '5h'    '8d'    '9d'
    '8h'     '9s'    'kc'    'js'    'qh'
    '3d'     '3s'    '7d'    '6s'    'jd'
    '10s'    '5s'    '6c'      []      []
dealtDeck =
    '6h'     '5d'    '4h'    '9h'    '7h'
    'ah'     '4d'    '5h'    '8d'    '9d'
    '8h'     '9s'    'kc'    'js'    'qh'
    '3d'     '3s'    '7d'    '6s'    'jd'
    '10s'    '5s'    '6c'    '3c'      []
dealtDeck =
    '6h'     '5d'    '4h'    '9h'    '7h'
    'ah'     '4d'    '5h'    '8d'    '9d'
    '8h'     '9s'    'kc'    'js'    'qh'
    '3d'     '3s'    '7d'    '6s'    'jd'
    '10s'    '5s'    '6c'    '3c'    'ks'
dealtDeck =
    '6h'     '5d'    '4h'    '9h'    '7h'
    'ah'     '4d'    '5h'    '8d'    '9d'
    '8h'     '9s'    'kc'    'js'    'qh'
    '3d'     '3s'    '7d'    '6s'    'jd'
    '10s'    '5s'    '6c'    '3c'    'ks'
deckLeftover =
    '10c'
    'kh'
    '10d'
    'as'
    '2c'
    'jc'
    '2s'
    '4s'
    'ac'
    'qs'
    'qd'
    '8s'
    '2h'
    'kd'
    '3h'
    '8c'
    '7c'
    '7s'
    'jh'
    '6d'
    '4c'
    'ad'
    '9c'
    '5c'
    '10h'
    '2d'
    'qc'
deckCheck =
    '2h'
    '3h'
    '4h'
    '5h'
    '6h'
    '7h'
    '8h'
    '9h'
    '10h'
    'jh'
    'qh'
    'kh'
    'ah'
    '2d'
    '3d'
    '4d'
    '5d'
    '6d'
    '7d'
    '8d'
    '9d'
    '10d'
    'jd'
    'qd'
    'kd'
    'ad'
    '2s'
    '3s'
    '4s'
    '5s'
    '6s'
    '7s'
    '8s'
    '9s'
    '10s'
    'js'
    'qs'
    'ks'
    'as'
    '2c'
    '3c'
    '4c'
    '5c'
    '6c'
    '7c'
    '8c'
    '9c'
    '10c'
    'jc'
    'qc'
    'kc'
    'ac'
2
Pass
 
%%
people = 3;
cardsDelt = 5;
isJokerIn = 0;
[dealtDeck, deckLeftover] = Poker_Deal(people ,cardsDelt ,isJokerIn)
deckCheck = {'2h'; '3h'; '4h'; '5h'; '6h'; '7h'; '8h'; '9h'; '10h'; 'jh'; 'qh'; 'kh'; 'ah'; '2d'; '3d'; '4d'; '5d'; '6d'; '7d'; '8d'; '9d'; '10d'; 'jd'; 'qd'; 'kd'; 'ad'; '2s'; '3s'; '4s'; '5s'; '6s'; '7s'; '8s'; '9s'; '10s'; 'js'; 'qs'; 'ks'; 'as'; '2c'; '3c'; '4c'; '5c'; '6c'; '7c'; '8c'; '9c'; '10c'; 'jc'; 'qc'; 'kc'; 'ac'}
h = (sum(sum(ismember(deckCheck,dealtDeck))) == 15) & ~issorted(reshape(dealtDeck,15,1));
g = (sum(ismember(deckCheck,deckLeftover)) == (52-15)) & ~issorted(deckLeftover);
y_correct = g&h;
assert(isequal(g,h))
deckCheck =
    '2h'
    '3h'
    '4h'
    '5h'
    '6h'
    '7h'
    '8h'
    '9h'
    '10h'
    'jh'
    'qh'
    'kh'
    'ah'
    '2d'
    '3d'
    '4d'
    '5d'
    '6d'
    '7d'
    '8d'
    '9d'
    '10d'
    'jd'
    'qd'
    'kd'
    'ad'
    '2s'
    '3s'
    '4s'
    '5s'
    '6s'
    '7s'
    '8s'
    '9s'
    '10s'
    'js'
    'qs'
    'ks'
    'as'
    '2c'
    '3c'
    '4c'
    '5c'
    '6c'
    '7c'
    '8c'
    '9c'
    '10c'
    'jc'
    'qc'
    'kc'
    'ac'
leftover =
  Columns 1 through 16
    15    12     8    44    24    30    35    40    18     6    20    11    14    22    32    16
  Columns 17 through 32
    28    47    27    45    46    23    42    13    52    29    39     4    33    34    21    25
  Columns 33 through 37
     5    50    36    41    17
dealtDeck =
    'kc'    []    []    []    []
      []    []    []    []    []
      []    []    []    []    []
dealtDeck =
    'kc'    '10h'    []    []    []
      []       []    []    []    []
      []       []    []    []    []
dealtDeck =
    'kc'    '10h'    'jc'    []    []
      []       []      []    []    []
      []       []      []    []    []
dealtDeck =
    'kc'    '10h'    'jc'    '4h'    []
      []       []      []      []    []
      []       []      []      []    []
dealtDeck =
    'kc'    '10h'    'jc'    '4h'    '6s'
      []       []      []      []      []
      []       []      []      []      []
dealtDeck =
    'kc'    '10h'    'jc'    '4h'    '6s'
    '2h'       []      []      []      []
      []       []      []      []      []
dealtDeck =
    'kc'    '10h'    'jc'    '4h'    '6s'
    '2h'    '5c'       []      []      []
      []       []      []      []      []
dealtDeck =
    'kc'    '10h'    'jc'    '4h'    '6s'
    '2h'    '5c'     'ks'      []      []
      []       []      []      []      []
dealtDeck =
    'kc'    '10h'    'jc'    '4h'    '6s'
    '2h'    '5c'     'ks'    'ad'      []
      []       []      []      []      []
dealtDeck =
    'kc'    '10h'    'jc'    '4h'    '6s'
    '2h'    '5c'     'ks'    'ad'    'jh'
      []       []      []      []      []
dealtDeck =
    'kc'    '10h'    'jc'    '4h'    '6s'
    '2h'    '5c'     'ks'    'ad'    'jh'
    'qs'       []      []      []      []
dealtDeck =
    'kc'    '10h'    'jc'    '4h'    '6s'
    '2h'    '5c'     'ks'    'ad'    'jh'
    'qs'    '10c'      []      []      []
dealtDeck =
    'kc'    '10h'    'jc'    '4h'    '6s'
    '2h'    '5c'     'ks'    'ad'    'jh'
    'qs'    '10c'    '7d'      []      []
dealtDeck =
    'kc'    '10h'    'jc'    '4h'    '6s'
    '2h'    '5c'     'ks'    'ad'    'jh'
    'qs'    '10c'    '7d'    '3h'      []
dealtDeck =
    'kc'    '10h'    'jc'    '4h'    '6s'
    '2h'    '5c'     'ks'    'ad'    'jh'
    'qs'    '10c'    '7d'    '3h'    '8h'
dealtDeck =
    'kc'    '10h'    'jc'    '4h'    '6s'
    '2h'    '5c'     'ks'    'ad'    'jh'
    'qs'    '10c'    '7d'    '3h'    '8h'
deckLeftover =
    '3d'
    'kh'
    '9h'
    '6c'
    'qd'
    '5s'
    '10s'
    '2c'
    '6d'
    '7h'
    '8d'
    'qh'
    '2d'
    '10d'
    '7s'
    '4d'
    '3s'
    '9c'
    '2s'
    '7c'
    '8c'
    'jd'
    '4c'
    'ah'
    'ac'
    '4s'
    'as'
    '5h'
    '8s'
    '9s'
    '9d'
    'kd'
    '6h'
    'qc'
    'js'
    '3c'
    '5d'
deckCheck =
    '2h'
    '3h'
    '4h'
    '5h'
    '6h'
    '7h'
    '8h'
    '9h'
    '10h'
    'jh'
    'qh'
    'kh'
    'ah'
    '2d'
    '3d'
    '4d'
    '5d'
    '6d'
    '7d'
    '8d'
    '9d'
    '10d'
    'jd'
    'qd'
    'kd'
    'ad'
    '2s'
    '3s'
    '4s'
    '5s'
    '6s'
    '7s'
    '8s'
    '9s'
    '10s'
    'js'
    'qs'
    'ks'
    'as'
    '2c'
    '3c'
    '4c'
    '5c'
    '6c'
    '7c'
    '8c'
    '9c'
    '10c'
    'jc'
    'qc'
    'kc'
    'ac'
3
Pass
 
%%
people = 4;
cardsDelt = 7;
isJokerIn = 0;
[dealtDeck, deckLeftover] = Poker_Deal(people ,cardsDelt ,isJokerIn)
deckCheck = {'2h'; '3h'; '4h'; '5h'; '6h'; '7h'; '8h'; '9h'; '10h'; 'jh'; 'qh'; 'kh'; 'ah'; '2d'; '3d'; '4d'; '5d'; '6d'; '7d'; '8d'; '9d'; '10d'; 'jd'; 'qd'; 'kd'; 'ad'; '2s'; '3s'; '4s'; '5s'; '6s'; '7s'; '8s'; '9s'; '10s'; 'js'; 'qs'; 'ks'; 'as'; '2c'; '3c'; '4c'; '5c'; '6c'; '7c'; '8c'; '9c'; '10c'; 'jc'; 'qc'; 'kc'; 'ac'}
h = (sum(sum(ismember(deckCheck,dealtDeck))) == 28) & ~issorted(reshape(dealtDeck,28,1));
g = (sum(ismember(deckCheck,deckLeftover)) == (52-28)) & ~issorted(deckLeftover);
y_correct = g&h;
assert(isequal(g,h))
deckCheck =
    '2h'
    '3h'
    '4h'
    '5h'
    '6h'
    '7h'
    '8h'
    '9h'
    '10h'
    'jh'
    'qh'
    'kh'
    'ah'
    '2d'
    '3d'
    '4d'
    '5d'
    '6d'
    '7d'
    '8d'
    '9d'
    '10d'
    'jd'
    'qd'
    'kd'
    'ad'
    '2s'
    '3s'
    '4s'
    '5s'
    '6s'
    '7s'
    '8s'
    '9s'
    '10s'
    'js'
    'qs'
    'ks'
    'as'
    '2c'
    '3c'
    '4c'
    '5c'
    '6c'
    '7c'
    '8c'
    '9c'
    '10c'
    'jc'
    'qc'
    'kc'
    'ac'
leftover =
  Columns 1 through 16
    52    11     9    33    12    26    13    38    46    35    27     4    19    51     5    23
  Columns 17 through 24
    48    29    31    37     6    25     8    42
dealtDeck =
    '3c'    []    []    []    []    []    []
      []    []    []    []    []    []    []
      []    []    []    []    []    []    []
      []    []    []    []    []    []    []
dealtDeck =
    '3c'    '10d'    []    []    []    []    []
      []       []    []    []    []    []    []
      []       []    []    []    []    []    []
      []       []    []    []    []    []    []
dealtDeck =
    '3c'    '10d'    '4h'    []    []    []    []
      []       []      []    []    []    []    []
      []       []      []    []    []    []    []
      []       []      []    []    []    []    []
dealtDeck =
    '3c'    '10d'    '4h'    '9c'    []    []    []
      []       []      []      []    []    []    []
      []       []      []      []    []    []    []
      []       []      []      []    []    []    []
dealtDeck =
    '3c'    '10d'    '4h'    '9c'    '4d'    []    []
      []       []      []      []      []    []    []
      []       []      []      []      []    []    []
      []       []      []      []      []    []    []
dealtDeck =
    '3c'    '10d'    '4h'    '9c'    '4d'    '2c'    []
      []       []      []      []      []      []    []
      []       []      []      []      []      []    []
      []       []      []      []      []      []    []
dealtDeck =
    '3c'    '10d'    '4h'    '9c'    '4d'    '2c'    '9s'
      []       []      []      []      []      []      []
      []       []      []      []      []      []      []
      []       []      []      []      []      []      []
dealtDeck =
    '3c'    '10d'    '4h'    '9c'    '4d'    '2c'    '9s'
    '5d'       []      []      []      []      []      []
      []       []      []      []      []      []      []
      []       []      []      []      []      []      []
dealtDeck =
    '3c'    '10d'    '4h'    '9c'    '4d'    '2c'    '9s'
    '5d'    '8h'       []      []      []      []      []
      []       []      []      []      []      []      []
      []       []      []      []      []      []      []
dealtDeck =
    '3c'    '10d'    '4h'    '9c'    '4d'    '2c'    '9s'
    '5d'    '8h'     '2d'      []      []      []      []
      []       []      []      []      []      []      []
      []       []      []      []      []      []      []
dealtDeck =
    '3c'    '10d'    '4h'    '9c'    '4d'    '2c'    '9s'
    '5d'    '8h'     '2d'    '7c'      []      []      []
      []       []      []      []      []      []      []
      []       []      []      []      []      []      []
dealtDeck =
    '3c'    '10d'    '4h'    '9c'    '4d'    '2c'    '9s'
    '5d'    '8h'     '2d'    '7c'    '5c'      []      []
      []       []      []      []      []      []      []
      []       []      []      []      []      []      []
dealtDeck =
    '3c'    '10d'    '4h'    '9c'    '4d'    '2c'    '9s'
    '5d'    '8h'     '2d'    '7c'    '5c'    'qd'      []
      []       []      []      []      []      []      []
      []       []      []      []      []      []      []
dealtDeck =
    '3c'    '10d'    '4h'    '9c'    '4d'    '2c'    '9s'
    '5d'    '8h'     '2d'    '7c'    '5c'    'qd'    'jc'
      []       []      []      []      []      []      []
      []       []      []      []      []      []      []
dealtDeck =
    '3c'    '10d'    '4h'    '9c'    '4d'    '2c'    '9s'
    '5d'    '8h'     '2d'    '7c'    '5c'    'qd'    'jc'
    '8d'       []      []      []      []      []      []
      []       []      []      []      []      []      []
dealtDeck =
    '3c'    '10d'    '4h'    '9c'    '4d'    '2c'    '9s'
    '5d'    '8h'     '2d'    '7c'    '5c'    'qd'    'jc'
    '8d'    'qc'       []      []      []      []      []
      []       []      []      []      []      []      []
dealtDeck =
    '3c'    '10d'    '4h'    '9c'    '4d'    '2c'    '9s'
    '5d'    '8h'     '2d'    '7c'    '5c'    'qd'    'jc'
    '8d'    'qc'     'as'      []      []      []      []
      []       []      []      []      []      []      []
dealtDeck =
    '3c'    '10d'    '4h'    '9c'    '4d'    '2c'    '9s'
    '5d'    '8h'     '2d'    '7c'    '5c'    'qd'    'jc'
    '8d'    'qc'     'as'    '2h'      []      []      []
      []       []      []      []      []      []      []
dealtDeck =
    '3c'    '10d'    '4h'    '9c'    '4d'    '2c'    '9s'
    '5d'    '8h'     '2d'    '7c'    '5c'    'qd'    'jc'
    '8d'    'qc'     'as'    '2h'    'js'      []      []
      []       []      []      []      []      []      []
dealtDeck =
    '3c'    '10d'    '4h'    '9c'    '4d'    '2c'    '9s'
    '5d'    '8h'     '2d'    '7c'    '5c'    'qd'    'jc'
    '8d'    'qc'     'as'    '2h'    'js'    '6c'      []
      []       []      []      []      []      []      []
dealtDeck =
    '3c'    '10d'    '4h'    '9c'    '4d'    '2c'    '9s'
    '5d'    '8h'     '2d'    '7c'    '5c'    'qd'    'jc'
    '8d'    'qc'     'as'    '2h'    'js'    '6c'    '7s'
      []       []      []      []      []      []      []
dealtDeck =
    '3c'    '10d'    '4h'    '9c'    '4d'    '2c'    '9s'
    '5d'    '8h'     '2d'    '7c'    '5c'    'qd'    'jc'
    '8d'    'qc'     'as'    '2h'    'js'    '6c'    '7s'
    '3h'       []      []      []      []      []      []
dealtDeck =
    '3c'    '10d'    '4h'    '9c'    '4d'    '2c'    '9s'
    '5d'    '8h'     '2d'    '7c'    '5c'    'qd'    'jc'
    '8d'    'qc'     'as'    '2h'    'js'    '6c'    '7s'
    '3h'    '6d'       []      []      []      []      []
dealtDeck =
    '3c'    '10d'    '4h'    '9c'    '4d'    '2c'    '9s'
    '5d'    '8h'     '2d'    '7c'    '5c'    'qd'    'jc'
    '8d'    'qc'     'as'    '2h'    'js'    '6c'    '7s'
    '3h'    '6d'     '3d'      []      []      []      []
dealtDeck =
    '3c'    '10d'    '4h'    '9c'    '4d'    '2c'    '9s'
    '5d'    '8h'     '2d'    '7c'    '5c'    'qd'    'jc'
    '8d'    'qc'     'as'    '2h'    'js'    '6c'    '7s'
    '3h'    '6d'     '3d'    '5s'      []      []      []
dealtDeck =
    '3c'    '10d'    '4h'    '9c'    '4d'    '2c'    '9s'
    '5d'    '8h'     '2d'    '7c'    '5c'    'qd'    'jc'
    '8d'    'qc'     'as'    '2h'    'js'    '6c'    '7s'
    '3h'    '6d'     '3d'    '5s'    '3s'      []      []
dealtDeck =
    '3c'    '10d'    '4h'    '9c'    '4d'    '2c'    '9s'
    '5d'    '8h'     '2d'    '7c'    '5c'    'qd'    'jc'
    '8d'    'qc'     'as'    '2h'    'js'    '6c'    '7s'
    '3h'    '6d'     '3d'    '5s'    '3s'    'jh'      []
dealtDeck =
    '3c'    '10d'    '4h'    '9c'    '4d'    '2c'    '9s'
    '5d'    '8h'     '2d'    '7c'    '5c'    'qd'    'jc'
    '8d'    'qc'     'as'    '2h'    'js'    '6c'    '7s'
    '3h'    '6d'     '3d'    '5s'    '3s'    'jh'    '9d'
dealtDeck =
    '3c'    '10d'    '4h'    '9c'    '4d'    '2c'    '9s'
    '5d'    '8h'     '2d'    '7c'    '5c'    'qd'    'jc'
    '8d'    'qc'     'as'    '2h'    'js'    '6c'    '7s'
    '3h'    '6d'     '3d'    '5s'    '3s'    'jh'    '9d'
deckLeftover =
    'ac'
    'qh'
    '10h'
    '8s'
    'kh'
    'ad'
    'ah'
    'ks'
    '8c'
    '10s'
    '2s'
    '5h'
    '7d'
    'kc'
    '6h'
    'jd'
    '10c'
    '4s'
    '6s'
    'qs'
    '7h'
    'kd'
    '9h'
    '4c'
deckCheck =
    '2h'
    '3h'
    '4h'
    '5h'
    '6h'
    '7h'
    '8h'
    '9h'
    '10h'
    'jh'
    'qh'
    'kh'
    'ah'
    '2d'
    '3d'
    '4d'
    '5d'
    '6d'
    '7d'
    '8d'
    '9d'
    '10d'
    'jd'
    'qd'
    'kd'
    'ad'
    '2s'
    '3s'
    '4s'
    '5s'
    '6s'
    '7s'
    '8s'
    '9s'
    '10s'
    'js'
    'qs'
    'ks'
    'as'
    '2c'
    '3c'
    '4c'
    '5c'
    '6c'
    '7c'
    '8c'
    '9c'
    '10c'
    'jc'
    'qc'
    'kc'
    'ac'
4
Pass
 
%%
people = 5;
cardsDelt = 6;
isJokerIn = 1;
[dealtDeck, deckLeftover] = Poker_Deal(people ,cardsDelt ,isJokerIn)
deckCheck = {'2h'; '3h'; '4h'; '5h'; '6h'; '7h'; '8h'; '9h'; '10h'; 'jh'; 'qh'; 'kh'; 'ah'; '2d'; '3d'; '4d'; '5d'; '6d'; '7d'; '8d'; '9d'; '10d'; 'jd'; 'qd'; 'kd'; 'ad'; '2s'; '3s'; '4s'; '5s'; '6s'; '7s'; '8s'; '9s'; '10s'; 'js'; 'qs'; 'ks'; 'as'; '2c'; '3c'; '4c'; '5c'; '6c'; '7c'; '8c'; '9c'; '10c'; 'jc'; 'qc'; 'kc'; 'ac'; 'J'; 'J'}
h = (sum(sum(ismember(deckCheck,dealtDeck))) == 30) & ~issorted(reshape(dealtDeck,30,1));
g = (sum(ismember(deckCheck,deckLeftover)) == (54-30)) & ~issorted(deckLeftover);
y_correct = g&h;
assert(isequal(g,h))
deckCheck =
    '2h'
    '3h'
    '4h'
    '5h'
    '6h'
    '7h'
    '8h'
    '9h'
    '10h'
    'jh'
    'qh'
    'kh'
    'ah'
    '2d'
    '3d'
    '4d'
    '5d'
    '6d'
    '7d'
    '8d'
    '9d'
    '10d'
    'jd'
    'qd'
    'kd'
    'ad'
    '2s'
    '3s'
    '4s'
    '5s'
    '6s'
    '7s'
    '8s'
    '9s'
    '10s'
    'js'
    'qs'
    'ks'
    'as'
    '2c'
    '3c'
    '4c'
    '5c'
    '6c'
    '7c'
    '8c'
    '9c'
    '10c'
    'jc'
    'qc'
    'kc'
    'ac'
    'J'
    'J'
leftover =
  Columns 1 through 16
    19    54    11    22    36    49     6    30    25    37    15    34    20    40     5     7
  Columns 17 through 24
    45    48    27     8    29    31    38    24
dealtDeck =
    '5d'    []    []    []    []    []
      []    []    []    []    []    []
      []    []    []    []    []    []
      []    []    []    []    []    []
      []    []    []    []    []    []
dealtDeck =
    '5d'    '10s'    []    []    []    []
      []       []    []    []    []    []
      []       []    []    []    []    []
      []       []    []    []    []    []
      []       []    []    []    []    []
dealtDeck =
    '5d'    '10s'    '5h'    []    []    []
      []       []      []    []    []    []
      []       []      []    []    []    []
      []       []      []    []    []    []
      []       []      []    []    []    []
dealtDeck =
    '5d'    '10s'    '5h'    '7s'    []    []
      []       []      []      []    []    []
      []       []      []      []    []    []
      []       []      []      []    []    []
      []       []      []      []    []    []
dealtDeck =
    '5d'    '10s'    '5h'    '7s'    '4c'    []
      []       []      []      []      []    []
      []       []      []      []      []    []
      []       []      []      []      []    []
      []       []      []      []      []    []
dealtDeck =
    '5d'    '10s'    '5h'    '7s'    '4c'    '3c'
      []       []      []      []      []      []
      []       []      []      []      []      []
      []       []      []      []      []      []
      []       []      []      []      []      []
dealtDeck =
    '5d'     '10s'    '5h'    '7s'    '4c'    '3c'
    '10h'       []      []      []      []      []
       []       []      []      []      []      []
       []       []      []      []      []      []
       []       []      []      []      []      []
dealtDeck =
    '5d'     '10s'    '5h'    '7s'    '4c'    '3c'
    '10h'    'ad'       []      []      []      []
       []       []      []      []      []      []
       []       []      []      []      []      []
       []       []      []      []      []      []
dealtDeck =
    '5d'     '10s'    '5h'    '7s'    '4c'    '3c'
    '10h'    'ad'     '5c'      []      []      []
       []       []      []      []      []      []
       []       []      []      []      []      []
       []       []      []      []      []      []
dealtDeck =
    '5d'     '10s'    '5h'    '7s'    '4c'    '3c'
    '10h'    'ad'     '5c'    '4h'      []      []
       []       []      []      []      []      []
       []       []      []      []      []      []
       []       []      []      []      []      []
dealtDeck =
    '5d'     '10s'    '5h'    '7s'    '4c'    '3c'
    '10h'    'ad'     '5c'    '4h'    'qc'      []
       []       []      []      []      []      []
       []       []      []      []      []      []
       []       []      []      []      []      []
dealtDeck =
    '5d'     '10s'    '5h'    '7s'    '4c'    '3c'
    '10h'    'ad'     '5c'    '4h'    'qc'    '2d'
       []       []      []      []      []      []
       []       []      []      []      []      []
       []       []      []      []      []      []
dealtDeck =
    '5d'     '10s'    '5h'    '7s'    '4c'    '3c'
    '10h'    'ad'     '5c'    '4h'    'qc'    '2d'
    'J'         []      []      []      []      []
       []       []      []      []      []      []
       []       []      []      []      []      []
dealtDeck =
    '5d'     '10s'    '5h'    '7s'    '4c'    '3c'
    '10h'    'ad'     '5c'    '4h'    'qc'    '2d'
    'J'      '6c'       []      []      []      []
       []       []      []      []      []      []
       []       []      []      []      []      []
dealtDeck =
    '5d'     '10s'    '5h'    '7s'    '4c'    '3c'
    '10h'    'ad'     '5c'    '4h'    'qc'    '2d'
    'J'      '6c'     '3s'      []      []      []
       []       []      []      []      []      []
       []       []      []      []      []      []
dealtDeck =
    '5d'     '10s'    '5h'    '7s'    '4c'    '3c'
    '10h'    'ad'     '5c'    '4h'    'qc'    '2d'
    'J'      '6c'     '3s'    '6d'      []      []
       []       []      []      []      []      []
       []       []      []      []      []      []
dealtDeck =
    '5d'     '10s'    '5h'    '7s'    '4c'    '3c'
    '10h'    'ad'     '5c'    '4h'    'qc'    '2d'
    'J'      '6c'     '3s'    '6d'    'ac'      []
       []       []      []      []      []      []
       []       []      []      []      []      []
dealtDeck =
    '5d'     '10s'    '5h'    '7s'    '4c'    '3c'
    '10h'    'ad'     '5c'    '4h'    'qc'    '2d'
    'J'      '6c'     '3s'    '6d'    'ac'    '3h'
       []       []      []      []      []      []
       []       []      []      []      []      []
dealtDeck =
    '5d'     '10s'    '5h'    '7s'    '4c'    '3c'
    '10h'    'ad'     '5c'    '4h'    'qc'    '2d'
    'J'      '6c'     '3s'    '6d'    'ac'    '3h'
    'ah'        []      []      []      []      []
       []       []      []      []      []      []
dealtDeck =
    '5d'     '10s'    '5h'    '7s'    '4c'    '3c'
    '10h'    'ad'     '5c'    '4h'    'qc'    '2d'
    'J'      '6c'     '3s'    '6d'    'ac'    '3h'
    'ah'     'jd'       []      []      []      []
       []       []      []      []      []      []
dealtDeck =
    '5d'     '10s'    '5h'    '7s'    '4c'    '3c'
    '10h'    'ad'     '5c'    '4h'    'qc'    '2d'
    'J'      '6c'     '3s'    '6d'    'ac'    '3h'
    'ah'     'jd'     '9c'      []      []      []
       []       []      []      []      []      []
dealtDeck =
    '5d'     '10s'    '5h'    '7s'    '4c'    '3c'
    '10h'    'ad'     '5c'    '4h'    'qc'    '2d'
    'J'      '6c'     '3s'    '6d'    'ac'    '3h'
    'ah'     'jd'     '9c'    'kh'      []      []
       []       []      []      []      []      []
dealtDeck =
    '5d'     '10s'    '5h'    '7s'    '4c'    '3c'
    '10h'    'ad'     '5c'    '4h'    'qc'    '2d'
    'J'      '6c'     '3s'    '6d'    'ac'    '3h'
    'ah'     'jd'     '9c'    'kh'    'kc'      []
       []       []      []      []      []      []
dealtDeck =
    '5d'     '10s'    '5h'    '7s'    '4c'    '3c'
    '10h'    'ad'     '5c'    '4h'    'qc'    '2d'
    'J'      '6c'     '3s'    '6d'    'ac'    '3h'
    'ah'     'jd'     '9c'    'kh'    'kc'    '2h'
       []       []      []      []      []      []
dealtDeck =
    '5d'     '10s'    '5h'    '7s'    '4c'    '3c'
    '10h'    'ad'     '5c'    '4h'    'qc'    '2d'
    'J'      '6c'     '3s'    '6d'    'ac'    '3h'
    'ah'     'jd'     '9c'    'kh'    'kc'    '2h'
    '8s'        []      []      []      []      []
dealtDeck =
    '5d'     '10s'    '5h'    '7s'    '4c'    '3c'
    '10h'    'ad'     '5c'    '4h'    'qc'    '2d'
    'J'      '6c'     '3s'    '6d'    'ac'    '3h'
    'ah'     'jd'     '9c'    'kh'    'kc'    '2h'
    '8s'     '4d'       []      []      []      []
dealtDeck =
    '5d'     '10s'    '5h'    '7s'    '4c'    '3c'
    '10h'    'ad'     '5c'    '4h'    'qc'    '2d'
    'J'      '6c'     '3s'    '6d'    'ac'    '3h'
    'ah'     'jd'     '9c'    'kh'    'kc'    '2h'
    '8s'     '4d'     'jh'      []      []      []
dealtDeck =
    '5d'     '10s'    '5h'    '7s'    '4c'    '3c'
    '10h'    'ad'     '5c'    '4h'    'qc'    '2d'
    'J'      '6c'     '3s'    '6d'    'ac'    '3h'
    'ah'     'jd'     '9c'    'kh'    'kc'    '2h'
    '8s'     '4d'     'jh'    '8c'      []      []
dealtDeck =
    '5d'     '10s'    '5h'    '7s'    '4c'    '3c'
    '10h'    'ad'     '5c'    '4h'    'qc'    '2d'
    'J'      '6c'     '3s'    '6d'    'ac'    '3h'
    'ah'     'jd'     '9c'    'kh'    'kc'    '2h'
    '8s'     '4d'     'jh'    '8c'    '9d'      []
dealtDeck =
    '5d'     '10s'    '5h'    '7s'    '4c'    '3c'
    '10h'    'ad'     '5c'    '4h'    'qc'    '2d'
    'J'      '6c'     '3s'    '6d'    'ac'    '3h'
    'ah'     'jd'     '9c'    'kh'    'kc'    '2h'
    '8s'     '4d'     'jh'    '8c'    '9d'    'as'
dealtDeck =
    '5d'     '10s'    '5h'    '7s'    '4c'    '3c'
    '10h'    'ad'     '5c'    '4h'    'qc'    '2d'
    'J'      '6c'     '3s'    '6d'    'ac'    '3h'
    'ah'     'jd'     '9c'    'kh'    'kc'    '2h'
    '8s'     '4d'     'jh'    '8c'    '9d'    'as'
deckLeftover =
    '7d'
    'J'
    'qh'
    '10d'
    'js'
    'jc'
    '7h'
    '5s'
    'kd'
    'qs'
    '3d'
    '9s'
    '8d'
    '2c'
    '6h'
    '8h'
    '7c'
    '10c'
    '2s'
    '9h'
    '4s'
    '6s'
    'ks'
    'qd'
deckCheck =
    '2h'
    '3h'
    '4h'
    '5h'
    '6h'
    '7h'
    '8h'
    '9h'
    '10h'
    'jh'
    'qh'
    'kh'
    'ah'
    '2d'
    '3d'
    '4d'
    '5d'
    '6d'
    '7d'
    '8d'
    '9d'
    '10d'
    'jd'
    'qd'
    'kd'
    'ad'
    '2s'
    '3s'
    '4s'
    '5s'
    '6s'
    '7s'
    '8s'
    '9s'
    '10s'
    'js'
    'qs'
    'ks'
    'as'
    '2c'
    '3c'
    '4c'
    '5c'
    '6c'
    '7c'
    '8c'
    '9c'
    '10c'
    'jc'
    'qc'
    'kc'
    'ac'
    'J'
    'J'
5
Pass
 
%%
people = 3;
cardsDelt = 4;
isJokerIn = 1;
[dealtDeck, deckLeftover] = Poker_Deal(people ,cardsDelt ,isJokerIn)
deckCheck = {'2h'; '3h'; '4h'; '5h'; '6h'; '7h'; '8h'; '9h'; '10h'; 'jh'; 'qh'; 'kh'; 'ah'; '2d'; '3d'; '4d'; '5d'; '6d'; '7d'; '8d'; '9d'; '10d'; 'jd'; 'qd'; 'kd'; 'ad'; '2s'; '3s'; '4s'; '5s'; '6s'; '7s'; '8s'; '9s'; '10s'; 'js'; 'qs'; 'ks'; 'as'; '2c'; '3c'; '4c'; '5c'; '6c'; '7c'; '8c'; '9c'; '10c'; 'jc'; 'qc'; 'kc'; 'ac'; 'J'; 'J'}
h = (sum(sum(ismember(deckCheck,dealtDeck))) == 12) & ~issorted(reshape(dealtDeck,12,1));
g = (sum(ismember(deckCheck,deckLeftover)) == (54-12)) & ~issorted(deckLeftover);
y_correct = g&h;
assert(isequal(g,h))
deckCheck =
    '2h'
    '3h'
    '4h'
    '5h'
    '6h'
    '7h'
    '8h'
    '9h'
    '10h'
    'jh'
    'qh'
    'kh'
    'ah'
    '2d'
    '3d'
    '4d'
    '5d'
    '6d'
    '7d'
    '8d'
    '9d'
    '10d'
    'jd'
    'qd'
    'kd'
    'ad'
    '2s'
    '3s'
    '4s'
    '5s'
    '6s'
    '7s'
    '8s'
    '9s'
    '10s'
    'js'
    'qs'
    'ks'
    'as'
    '2c'
    '3c'
    '4c'
    '5c'
    '6c'
    '7c'
    '8c'
    '9c'
    '10c'
    'jc'
    'qc'
    'kc'
    'ac'
    'J'
    'J'
leftover =
  Columns 1 through 16
    32    29    53    31     1     5    14     6    30    25    46    54    23    28    21    41
  Columns 17 through 32
    40    36    33     4    19     7    16    10    38    12    44     9    26    48    17    43
  Columns 33 through 42
    27    47    24    15     2    52    42    39    20    22
dealtDeck =
    'qh'    []    []    []
      []    []    []    []
      []    []    []    []
dealtDeck =
    'qh'    'qc'    []    []
      []      []    []    []
      []      []    []    []
dealtDeck =
    'qh'    'qc'    '4h'    []
      []      []      []    []
      []      []      []    []
dealtDeck =
    'qh'    'qc'    '4h'    '7c'
      []      []      []      []
      []      []      []      []
dealtDeck =
    'qh'    'qc'    '4h'    '7c'
    'jc'      []      []      []
      []      []      []      []
dealtDeck =
    'qh'    'qc'    '4h'    '7c'
    'jc'    'qs'      []      []
      []      []      []      []
dealtDeck =
    'qh'    'qc'    '4h'    '7c'
    'jc'    'qs'    '9s'      []
      []      []      []      []
dealtDeck =
    'qh'    'qc'    '4h'    '7c'
    'jc'    'qs'    '9s'    'ah'
      []      []      []      []
dealtDeck =
    'qh'     'qc'    '4h'    '7c'
    'jc'     'qs'    '9s'    'ah'
    '10s'      []      []      []
dealtDeck =
    'qh'     'qc'    '4h'    '7c'
    'jc'     'qs'    '9s'    'ah'
    '10s'    '6d'      []      []
dealtDeck =
    'qh'     'qc'    '4h'    '7c'
    'jc'     'qs'    '9s'    'ah'
    '10s'    '6d'    '9h'      []
dealtDeck =
    'qh'     'qc'    '4h'    '7c'
    'jc'     'qs'    '9s'    'ah'
    '10s'    '6d'    '9h'    'kc'
dealtDeck =
    'qh'     'qc'    '4h'    '7c'
    'jc'     'qs'    '9s'    'ah'
    '10s'    '6d'    '9h'    'kc'
deckLeftover =
    '7s'
    '4s'
    'J'
    '6s'
    '2h'
    '6h'
    '2d'
    '7h'
    '5s'
    'kd'
    '8c'
    'J'
    'jd'
    '3s'
    '9d'
    '3c'
    '2c'
    'js'
    '8s'
    '5h'
    '7d'
    '8h'
    '4d'
    'jh'
    'ks'
    'kh'
    '6c'
    '10h'
    'ad'
    '10c'
    '5d'
    '5c'
    '2s'
    '9c'
    'qd'
    '3d'
    '3h'
    'ac'
    '4c'
    'as'
    '8d'
    '10d'
deckCheck =
    '2h'
    '3h'
    '4h'
    '5h'
    '6h'
    '7h'
    '8h'
    '9h'
    '10h'
    'jh'
    'qh'
    'kh'
    'ah'
    '2d'
    '3d'
    '4d'
    '5d'
    '6d'
    '7d'
    '8d'
    '9d'
    '10d'
    'jd'
    'qd'
    'kd'
    'ad'
    '2s'
    '3s'
    '4s'
    '5s'
    '6s'
    '7s'
    '8s'
    '9s'
    '10s'
    'js'
    'qs'
    'ks'
    'as'
    '2c'
    '3c'
    '4c'
    '5c'
    '6c'
    '7c'
    '8c'
    '9c'
    '10c'
    'jc'
    'qc'
    'kc'
    'ac'
    'J'
    'J'
6
Pass
 
%%
people = 3;
cardsDelt = 3;
isJokerIn = 1;
[dealtDeck, deckLeftover] = Poker_Deal(people ,cardsDelt ,isJokerIn)
deckCheck = {'2h'; '3h'; '4h'; '5h'; '6h'; '7h'; '8h'; '9h'; '10h'; 'jh'; 'qh'; 'kh'; 'ah'; '2d'; '3d'; '4d'; '5d'; '6d'; '7d'; '8d'; '9d'; '10d'; 'jd'; 'qd'; 'kd'; 'ad'; '2s'; '3s'; '4s'; '5s'; '6s'; '7s'; '8s'; '9s'; '10s'; 'js'; 'qs'; 'ks'; 'as'; '2c'; '3c'; '4c'; '5c'; '6c'; '7c'; '8c'; '9c'; '10c'; 'jc'; 'qc'; 'kc'; 'ac';  'J'; 'J'}
h = (sum(sum(ismember(deckCheck,dealtDeck))) == 9) & ~issorted(reshape(dealtDeck,9,1));
g = (sum(ismember(deckCheck,deckLeftover)) == (54-9)) & ~issorted(deckLeftover);
y_correct = g&h;
assert(isequal(g,h))
deckCheck =
    '2h'
    '3h'
    '4h'
    '5h'
    '6h'
    '7h'
    '8h'
    '9h'
    '10h'
    'jh'
    'qh'
    'kh'
    'ah'
    '2d'
    '3d'
    '4d'
    '5d'
    '6d'
    '7d'
    '8d'
    '9d'
    '10d'
    'jd'
    'qd'
    'kd'
    'ad'
    '2s'
    '3s'
    '4s'
    '5s'
    '6s'
    '7s'
    '8s'
    '9s'
    '10s'
    'js'
    'qs'
    'ks'
    'as'
    '2c'
    '3c'
    '4c'
    '5c'
    '6c'
    '7c'
    '8c'
    '9c'
    '10c'
    'jc'
    'qc'
    'kc'
    'ac'
    'J'
    'J'
leftover =
  Columns 1 through 16
    23    53    15    32    47    24    34    43     2    21    51    29    50    10    30    12
  Columns 17 through 32
    41    36     6     1    22    16    19    40    11    37     9     5    13     7    48    46
  Columns 33 through 45
    54    44    38     8    49    18     4    45    31    27    35    14    42
dealtDeck =
    'ac'    []    []
      []    []    []
      []    []    []
dealtDeck =
    'ac'    '4h'    []
      []      []    []
      []      []    []
dealtDeck =
    'ac'    '4h'    '5d'
      []      []      []
      []      []      []
dealtDeck =
    'ac'    '4h'    '5d'
    'ad'      []      []
      []      []      []
dealtDeck =
    'ac'    '4h'    '5d'
    'ad'    'as'      []
      []      []      []
dealtDeck =
    'ac'    '4h'    '5d'
    'ad'    'as'    '8d'
      []      []      []
dealtDeck =
    'ac'    '4h'    '5d'
    'ad'    'as'    '8d'
    '8s'      []      []
dealtDeck =
    'ac'    '4h'    '5d'
    'ad'    'as'    '8d'
    '8s'    'kd'      []
dealtDeck =
    'ac'    '4h'    '5d'
    'ad'    'as'    '8d'
    '8s'    'kd'    '3s'
dealtDeck =
    'ac'    '4h'    '5d'
    'ad'    'as'    '8d'
    '8s'    'kd'    '3s'
deckLeftover =
    'jd'
    'J'
    '3d'
    '7s'
    '9c'
    'qd'
    '9s'
    '5c'
    '3h'
    '9d'
    'kc'
    '4s'
    'qc'
    'jh'
    '5s'
    'kh'
    '3c'
    'js'
    '7h'
    '2h'
    '10d'
    '4d'
    '7d'
    '2c'
    'qh'
    'qs'
    '10h'
    '6h'
    'ah'
    '8h'
    '10c'
    '8c'
    'J'
    '6c'
    'ks'
    '9h'
    'jc'
    '6d'
    '5h'
    '7c'
    '6s'
    '2s'
    '10s'
    '2d'
    '4c'
deckCheck =
    '2h'
    '3h'
    '4h'
    '5h'
    '6h'
    '7h'
    '8h'
    '9h'
    '10h'
    'jh'
    'qh'
    'kh'
    'ah'
    '2d'
    '3d'
    '4d'
    '5d'
    '6d'
    '7d'
    '8d'
    '9d'
    '10d'
    'jd'
    'qd'
    'kd'
    'ad'
    '2s'
    '3s'
    '4s'
    '5s'
    '6s'
    '7s'
    '8s'
    '9s'
    '10s'
    'js'
    'qs'
    'ks'
    'as'
    '2c'
    '3c'
    '4c'
    '5c'
    '6c'
    '7c'
    '8c'
    '9c'
    '10c'
    'jc'
    'qc'
    'kc'
    'ac'
    'J'
    'J'