Add project files.

This commit is contained in:
szigetiatilla
2025-05-09 19:00:14 +02:00
parent c1f2219868
commit c1be3a0ed7
8 changed files with 231 additions and 0 deletions

29
OsztoProgram/Csomag.cs Normal file
View File

@@ -0,0 +1,29 @@
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[] szinek = { "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 szin in szinek)
{
foreach (string ertek in ertekek)
{
Lapok[lapindex] = new Kartyalap(szin, ertek);
lapindex++;
}
}
}
}
}