oszto/Oszto/Oszto.cs
2023-09-19 12:47:30 +02:00

58 lines
1.2 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Oszto
{
class Oszto
{
public Pakli Csomag;
public Jatekos[] Jatekosok;
public int Kezbedb;
public int Hanyasaval;
static void Main(string[] args)
{
Console.WriteLine("Osztó program OOP");
//Pakli pakli = new Pakli();
}
public void Kioszt()
{
}
private bool Ellenorzes()
{
return (Kezbedb*Jatekosok.Length<=52) && (Kezbedb%Hanyasaval==0);
}
private void Bekeres()
{
Console.WriteLine("Hány játékos lesz? ");
int jdb = int.Parse(Console.ReadLine());
Console.WriteLine("Hány lapot kapnak? ");
Kezbedb = int.Parse(Console.ReadLine());
Console.WriteLine("Az ostáskor hányasával adjuk a lapokat? ");
Hanyasaval = int.Parse(Console.ReadLine());
Jatekosok = new Jatekos[jdb];
for (int i = 0; i < jdb; i++)
{
Jatekosok[i] = new Jatekos("Player" + i);
}
}
}
}