Beispiel #1
0
        public void ApplyDrawedAliveCellsToModel(List <Point> drawedCells)
        {
            GameModel.Cells.Clear();

            foreach (Point drawedCell in drawedCells)
            {
                GameModel.AddCellToGameModelWithCheckOfOverlapping(new Cell((int)drawedCell.X, (int)drawedCell.Y)
                {
                    Alive = true
                });
            }

            GameModel.PopulateRemainedSpaceWithDeadCells();
        }