import java.util.*;
import java.awt.*;
import java.io.*;

// An empty cell in the Game of Life.
// ----------------------------------------------------------------------
public class EmptyCell extends Cell {

    // Constructor.  This gets called for each newly created EmptyCell.
    // Set my color to white and my display character to '-'.
    // ------------------------------------------------------------------
    public EmptyCell () {
        ident = '-';
        c = Color.white;
    }

    // If numNeighbours is 3, then this cell will become a LiveCell in
    // the next generation; otherwise, it will remain an EmptyCell.
    // ------------------------------------------------------------------
    public Cell evolve (int numNeighbours) {
        return (numNeighbours == 3) 
            ? (Cell) new LiveCell ()
            : (Cell) this;
   }


}
