Esempio n. 1
0
        public List <Karta> GetValidCards(List <Karta> ls, StateGame1000 s)
        {
            int[]        max = BasicTools.InitializeTable(4, ValueIfCardsDontExist);
            List <Karta> zw  = new List <Karta>(ls.Count);

            GetMinCards(max, ls);
            zw.AddRange(IntToCard(max));
            return(zw);
        }
Esempio n. 2
0
 public static int[] GetHightCards(IEnumerable <Karta> cards)
 {
     int[] zw = BasicTools.InitializeTable <int>(4, -1);
     foreach (var item in cards)
     {
         int IndexColor = (int)item.Kolor();
         BasicTools.SetMax(ref zw[IndexColor], (int)item);
     }
     return(zw);
 }