using System.Collections.Generic;
public static void Main()
List<int> commons = new List<int>();
for (int x = 1; x < 4; x++)
for (int y = 1; y < 200; y++)
Dictionary<int, List<int>> piles = new Dictionary<int, List<int>>();
for (int i = 0; i < 2; i++)
piles = new Dictionary<int, List<int>>();
for (int n = 1; n < 8; n++)
piles.Add(n, new List<int>());
Random rng = new Random();
foreach (int card in commons)
int pile = rng.Next(1, 8);
commons = new List<int>();
for (int pile = 1; pile < 8; pile++)
for (int x = 0; x < piles[pile].Count; x++)
commons.Add(piles[pile][x]);
for (int pile = 1; pile < 8; pile++)
for (int i = 1; i < 4; i++)
PrintBar(piles[pile].Count(x => x == i));
static void PrintBar(int count)
for (int i = 0; i < count; i++)
Console.Write(Environment.NewLine);