using System.Collections.Generic;
using static System.Console;
public static void Main()
string[] highCards = { "A", "K", "Q", "J", "T" };
string[] suits = { "a", "b", "c", "d" };
List<string> hashes = new List<string>();
List<string> possibleCombinations = new List<string>();
foreach( string highCard1 in highCards ) {
foreach( string suit1 in suits ) {
foreach( string highCard2 in highCards ) {
foreach( string suit2 in suits ) {
if( suit1 == suit2 ) continue;
foreach( string highCard3 in highCards ) {
foreach( string suit3 in suits ) {
if( suit1 == suit2 || suit1 == suit3 || suit2 == suit3 ) continue;
string result = highCard1+suit1 + " " + highCard2+suit2 + " " + highCard3+suit3;
string hash = String.Concat(highCard1+highCard2+highCard3.OrderBy(c => c)) + String.Concat(suit1+suit2+suit3.OrderBy(c => c));
if( hashes.IndexOf(hash) > -1 ) continue;
possibleCombinations.Add(highCard1+suit1 + " " + highCard2+suit2 + " " + highCard3+suit3);
Console.WriteLine("There are " + possibleCombinations.Count().ToString() + " possible combinations");
foreach( var combination in possibleCombinations ) {
Console.WriteLine(combination);