Newer
Older
import java.util.List;
/**
* {@link GameOfLifeState} instances represent the possible states of a {@link GameOfLifeState}.
*/
public enum GameOfLifeState implements State<GameOfLifeState> {
switch (this) {
case ALIVE:
return DEAD;
case DEAD:
return ALIVE;
default:
return ALIVE;
}
public GameOfLifeState update(List<GameOfLifeState> neighbours) {