예제 #1
0
파일: Grid.cs 프로젝트: olelit/justForFun
        public void Seed()
        {
            Random rand = new Random();
            int    i    = 0;

            while (i < Settings.Settings.GridSeedCount)
            {
                int    x   = rand.Next(0, MatrixWidth);
                int    y   = rand.Next(0, MatrixHeight);
                string key = Keys.ConvertToKey(new Point(x, y));
                if (!Cell.Cells.ContainsKey(key))
                {
                    Cell cell = new Cell(x, y);
                }
                i++;
            }
        }