Skip navigation links
A C D G I M N P R W 

A

ALIVE - Static variable in class Config
The character displayed in the world if that cell is alive.

C

CHANCE_ALIVE - Static variable in class Config
CHANCE_ALIVE is used in the initializeRandomWorld method to initialize the cells that are alive in the initial generation.
clearWorld(boolean[][]) - Static method in class GameOfLife
Sets all the cells in the world to not alive (false).
Config - Class in <Unnamed>
Contains constants that must be used by GameOfLife for the size of the world and the symbols used to represent alive and dead cells.
Config() - Constructor for class Config
 
createNewWorld(int, int) - Static method in class GameOfLife
Create a new world

D

DEAD - Static variable in class Config
The character displayed in the world if that cell is dead.

G

GameOfLife - Class in <Unnamed>
 
GameOfLife() - Constructor for class GameOfLife
 

I

initializeBeacon(boolean[][]) - Static method in class GameOfLife
Initializes the world to the Beacon pattern.
initializeBoat(boolean[][]) - Static method in class GameOfLife
Initializes the world to the Boat pattern.
initializeGlider(boolean[][]) - Static method in class GameOfLife
Initializes the world to the Glider pattern.
initializeRandomWorld(boolean[][]) - Static method in class GameOfLife
Initialize the GameOfLife world with a random selection of cells alive.
initializeRpentomino(boolean[][]) - Static method in class GameOfLife
Initializes the world to the R-pentomino pattern.
isCellLivingInNextGeneration(int, boolean) - Static method in class GameOfLife
Whether a cell is living in the next generation of the game.
isNeighborAlive(boolean[][], int, int) - Static method in class GameOfLife
Whether a specific neighbor is alive.

M

main(String[]) - Static method in class GameOfLife
Program execution starts here.
MAX_WORLD_SIZE - Static variable in class Config
 
MIN_WORLD_SIZE - Static variable in class Config
The maximum and minimum number of rows and columns that the world can be.

N

nextGeneration(boolean[][], boolean[][]) - Static method in class GameOfLife
Creates the next generation of the world.
numNeighborsAlive(boolean[][], int, int) - Static method in class GameOfLife
Counts the number of neighbors that are currently living around the specified cell.

P

printWorld(String, boolean[][], int) - Static method in class GameOfLife
Prints out the world showing each cell as alive or dead.

R

RNG - Static variable in class Config
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.

W

WORLD_COLUMNS - Static variable in class Config
 
WORLD_ROWS - Static variable in class Config
The number of rows and columns of cells in the world.
A C D G I M N P R W 
Skip navigation links