oszto12B/Oszto/Jatekos.cs

33 lines
631 B
C#
Raw Normal View History

2023-09-14 12:58:52 +00:00
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;
2023-09-28 10:56:02 +00:00
public int lapindex;
2023-09-14 12:58:52 +00:00
2023-09-21 12:59:57 +00:00
public Jatekos(string nev,int kezbedb)
2023-09-14 12:58:52 +00:00
{
this.nev = nev;
2023-09-21 12:59:57 +00:00
this.lapok = new Kartyalap[kezbedb];
2023-09-28 10:56:02 +00:00
lapindex = 0;
2023-09-14 12:58:52 +00:00
}
public void terit()
{
Console.WriteLine(nev);
foreach (var item in lapok)
{
2023-09-28 10:56:02 +00:00
Console.WriteLine("\t"+item);
2023-09-14 12:58:52 +00:00
}
}
}
}