//public

        public Dictionary <CoOrdinate, Card> GetCards(GridBalanceManager gridBalanceManager)
        {
            //called by new Grid().ResetCardBalance();
            GridBalanceManagerV       = gridBalanceManager;
            GridSize                  = gridBalanceManager.Size;
            InitialNumbersOfOperators = GridBalanceManagerV.GetInitialNumbersOfOperators();
            InitialNumbersOfPoints    = GridBalanceManagerV.GetInitialNumbersOfPoints();

            /*Console.WriteLine("process.getcard" + InitialNumbersOfOperators.Count+" "+InitialNumbersOfPoints.Count);
             * foreach (var VARIABLE in InitialNumbersOfPoints)
             * {
             *  Console.WriteLine(VARIABLE.Key+" "+VARIABLE.Value);
             * }*/
            MapCardToCoOrdinate();
            //Console.WriteLine("process.getcard"+CardMappedByCoOrdinated.Count);
            return(CardMappedByCoOrdinated);
        }
Beispiel #2
0
 public Grid(int size = 10)
 {
     Size = size;
     gridBalanceManagerV = new GridBalanceManager(size);
     ResetCardBalance();
 }