public Place(Position position, bool liveOrDeadCell) { PlacePosition = position; if (liveOrDeadCell) { PlacedCell = new LiveCell(); } else { PlacedCell = new DeadCell(); } }
private void InsertDeadCell(Position position) { foreach(var p in Map) { if(p.PlacePosition.X == position.X && p.PlacePosition.Y == position.Y) p.InsertDeadCell(); } }