using System.Collections.Generic;
public List<Karta> dobijeneKarte = new List<Karta>();
foreach(Karta k in dobijeneKarte)
if(k.broj > 11) sum = sum + 10;
public Karta(char z, int b)
for(int i=1; i < 15; i++)
karte.Add(new Karta('H', i));
karte.Add(new Karta('K', i));
karte.Add(new Karta('P', i));
karte.Add(new Karta('T', i));
int i = r.Next(karte.Count);
public List<Karta> karte = new List<Karta>();
public static void Main()
List<Igrac> studenti = new List<Igrac>() { new Igrac() {ime = "Jim", brojZetona = 100 }
,new Igrac() {ime = "John", brojZetona = 100 }
,new Igrac() {ime = "Jane", brojZetona = 100 }};
Igrac diler = new Igrac() {ime = "diler", brojZetona = 10000 };
for(int i=0; i < studenti.Count; i++)
Console.WriteLine(studenti[i].ime + " Ulog");
studenti[i].ulog = Convert.ToInt32(Console.ReadLine());
studenti[i].dobijeneKarte.Add(s.povuci());
studenti[i].dobijeneKarte.Add(s.povuci());
diler.dobijeneKarte.Add(s.povuci());
diler.dobijeneKarte.Add(s.povuci());
foreach(Igrac igrac in studenti)
Console.WriteLine(igrac.ime + " total " + igrac.getZbir() + " Dali zelite jos jednu kartu");
input = Console.ReadLine();
if (input.StartsWith("Y"))
igrac.dobijeneKarte.Add(s.povuci());
}while(input.StartsWith("Y"));
Console.WriteLine(diler.ime + " total " + diler.getZbir() + " Dali zelite jos jednu kartu");
input = Console.ReadLine();
if (input.StartsWith("Y"))
diler.dobijeneKarte.Add(s.povuci());
}while(input.StartsWith("Y"));
foreach (Igrac i in studenti)
if (i.getZbir() > diler.getZbir())
i.brojZetona = i.brojZetona + i.ulog;
Console.WriteLine("Igrac " + i.ime + " dobio " + i.ulog);
if (i.getZbir() == diler.getZbir())
Console.WriteLine("Igrac " + i.ime + " ostao na svome");
i.brojZetona = i.brojZetona - i.ulog;
Console.WriteLine("Igrac " + i.ime + " izgubio " + i.ulog);