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