Add project files.
This commit is contained in:
42
OsztoProgram/Oszto.cs
Normal file
42
OsztoProgram/Oszto.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OsztoProgram
|
||||
{
|
||||
internal class Oszto
|
||||
{
|
||||
public Csomag Pakli;
|
||||
public Jatekos[] Jatekosok;
|
||||
public int Osztottlapok; // egy játékosnak hány lapot kell adni
|
||||
public int JatekosokSzama;
|
||||
public int Hanyasaval; //hanyasaval kell a lapokat kiosztani
|
||||
static void Main(string[] args)
|
||||
{
|
||||
/*Csomag cs = new Csomag();
|
||||
Console.WriteLine(cs.Lapok[0].Szin + " -" + cs.Lapok[0].Ertek);
|
||||
Console.WriteLine(cs.Lapok[25].Szin + " -" + cs.Lapok[25].Ertek);
|
||||
Console.WriteLine(cs.Lapok[50].Szin + " -" + cs.Lapok[50].Ertek);*/
|
||||
Oszto osztoprogram = new Oszto();
|
||||
osztoprogram.Bekeres();
|
||||
|
||||
}
|
||||
public Oszto()
|
||||
|
||||
{
|
||||
Pakli = new Csomag();
|
||||
}
|
||||
public void Bekeres()
|
||||
{
|
||||
Console.WriteLine("Hány játékosnak osszak?(1-4");
|
||||
JatekosokSzama = int.Parse(Console.ReadLine());
|
||||
Console.WriteLine("Hány lapot kapjon egy játékos?");
|
||||
Osztottlapok = int.Parse(Console.ReadLine());
|
||||
Console.WriteLine("Hanyasával osszam a lapokat?");
|
||||
Hanyasaval = int.Parse(Console.ReadLine());
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user