public class Config
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static char |
ALIVE
The character displayed in the world if that cell is alive.
|
static double |
CHANCE_ALIVE
CHANCE_ALIVE is used in the initializeRandomWorld method to initialize
the cells that are alive in the initial generation.
|
static char |
DEAD
The character displayed in the world if that cell is dead.
|
static int |
MAX_WORLD_SIZE |
static int |
MIN_WORLD_SIZE
The maximum and minimum number of rows and columns that the world can be.
|
static java.util.Random |
RNG
Use the RNG named constant in the initializeRandomWorld method of
your GameOfLife.java program to initialize the cells that are alive in
the initial generation.
|
static int |
WORLD_COLUMNS |
static int |
WORLD_ROWS
The number of rows and columns of cells in the world.
|
| Constructor and Description |
|---|
Config() |
public static final int MIN_WORLD_SIZE
public static final int MAX_WORLD_SIZE
public static final int WORLD_ROWS
public static final int WORLD_COLUMNS
public static final char ALIVE
public static final char DEAD
public static final double CHANCE_ALIVE
public static final java.util.Random RNG