oszto12B/Oszto/Jatekos.cs
2023-09-28 12:56:02 +02:00

33 lines
631 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Oszto
{
class Jatekos
{
public Kartyalap[] lapok;
public string nev;
public int lapindex;
public Jatekos(string nev,int kezbedb)
{
this.nev = nev;
this.lapok = new Kartyalap[kezbedb];
lapindex = 0;
}
public void terit()
{
Console.WriteLine(nev);
foreach (var item in lapok)
{
Console.WriteLine("\t"+item);
}
}
}
}