Files
osztoprogram/OsztoProgram/Csomag.cs
marthanelentianita ed07237c41 Add project files.
2025-05-09 19:00:21 +02:00

30 lines
812 B
C#

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++;
}
}
}
}
}