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