using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace OsztoProgram { internal class Csomag { public Kartyalap[] Lapok; public Csomag() { Lapok = new Kartyalap[52]; //kártyalapok létrehozása: string[] színek = { "pikk", "kör", "káró", "treff" }; string[] ertekek = { "2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K", "A" }; int lapindex = 0; foreach (string szín in színek) { foreach(string ertek in ertekek) { Lapok[lapindex] = new Kartyalap(szín, ertek); lapindex++; } } } } }