Add project files.
This commit is contained in:
29
OsztoProgram/Csomag.cs
Normal file
29
OsztoProgram/Csomag.cs
Normal 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++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user