find patterns in poker
Input cards: "2 A K A Q J 10 9 9 7 6 6 7 7 8 5 6 4"
Outputs: [[Value 4; Value 5; Value 6; Value 7; Value 8; Value 9; Value 10; J; Q; K; A]; [Value 7; Value 7]; [Value 6; Value 6]; [Value 2]; [A]; [Value 9]]
Possible patterns:
[Value 7; Value 7; Value 7] [Value 6; Value 6; Value 6] [Value 7; Value 7; Value 7; Value 2] [Value 7; Value 7; Value 7; A] [Value 7; Value 7; Value 7; K] [Value 7; Value 7; Value 7; Q] [Value 7; Value 7; Value 7; J] [Value 7; Value 7; Value 7; Value 10] [Value 7; Value 7; Value 7; Value 9] [Value 7; Value 7; Value 7; Value 8] [Value 6; Value 7; Value 7; Value 7] [Value 5; Value 7; Value 7; Value 7] [Value 4; Value 7; Value 7; Value 7] [Value 6; Value 6; Value 6; Value 2] [Value 6; Value 6; Value 6; A] [Value 6; Value 6; Value 6; K] [Value 6; Value 6; Value 6; Q] [Value 6; Value 6; Value 6; J] [Value 6; Value 6; Value 6; Value 10] [Value 6; Value 6; Value 6; Value 9] [Value 6; Value 6; Value 6; Value 8] [Value 6; Value 6; Value 6; Value 7] [Value 5; Value 6; Value 6; Value 6] [Value 4; Value 6; Value 6; Value 6] [Value 7; Value 7; Value 7; A; A] [Value 7; Value 7; Value 7; Value 9; Value 9] [Value 6; Value 6; Value 7; Value 7; Value 7] [Value 6; Value 6; Value 6; A; A] [Value 6; Value 6; Value 6; Value 9; Value 9] [Value 6; Value 6; Value 6; Value 7; Value 7] [A; A] [Value 9; Value 9] [Value 7; Value 7] [Value 6; Value 6] [Value 2] [A] [K] [Q] [J] [Value 10] [Value 9] [Value 8] [Value 7] [Value 6] [Value 5] [Value 4] [Value 4; Value 5; Value 6; Value 7; Value 8; Value 9; Value 10; J; Q; K; A]