Пример #1
0
 public Speletajs dalitKartisSpeletajam(string name)
 {
     List<Kartis> kartissp = new List<Kartis>();
     for (int i = 0; i < 6; i++)
     {
         Kartis temp = new Kartis(kava[0].Masts, kava[0].Vertiba);
         kava.RemoveAt(0);
         kartissp.Add(temp);
     }
     Speletajs sp = new Speletajs(name, kartissp);
     return sp;
 }
Пример #2
0
 public void maisitKavu()
 {
     for (int i = 0; i < 6000; i++)
     {
         Random r = new Random();
         int nr = r.Next(52);
         Kartis temp = new Kartis(kava[nr].Masts, kava[nr].Vertiba);
         kava.RemoveAt(nr);
         kava.Add(temp);
     }
 }
Пример #3
0
 public void dalitKartis(Speletajs s)
 {
     if (Form1.kava.Count != 0)
     {
         Kartis temp = new Kartis(Form1.kava[0].Masts, Form1.kava[0].Vertiba);
         Form1.kava.RemoveAt(0);
         s.S_kartis.Add(temp);
     }
 }