Exemplo n.º 1
0
 public override CellState GetNextState(int neighborhoods)
 {
     if (neighborhoods == 3)
     {
         return(Alive.GetInstance());
     }
     else
     {
         return(this);
     }
 }
Exemplo n.º 2
0
 public static CellState GetAliveCell() => Alive.GetInstance();