src/main/java/com/brianscottrussell/gameoflife/GameOfLife.java
/**
     * Runs the Game of Life by printing out the starting grid and the subsequent grids.
     *   The game will run for the count indicated by "generations"
     *
     * @param gameGridInput String
     * @param generations Integer
     */
Runs the Game of Life by printing out the starting grid and the subsequent grids.
The game will run for the count indicated by "generations"

@param gameGridInput String
@param generations Integer
Runs the Game of Life by printing out the starting grid and the subsequent grids . The game will run for the count indicated by " generations " @param gameGridInput String @param generations Integer
private static void runGameOfLife(String gameGridInput, Integer generations) {
        GameGrid gameGrid = new GameGrid(gameGridInput);
        printGeneration(gameGrid);
        while(gameGrid.getGeneration() < generations) {
            gameGrid.incrementGeneration();
            printGeneration(gameGrid);
        }
    }
private static void runGameOfLife ( String gameGridInput , Integer generations ) { GameGrid gameGrid = new GameGrid ( gameGridInput ) ; printGeneration ( gameGrid ) ; while ( gameGrid . getGeneration ( ) < generations ) { gameGrid . incrementGeneration ( ) ; printGeneration ( gameGrid ) ; } }
Runs the Game of Life by printing out the starting grid and the subsequent grids.
Runs the Game of Life by printing out the starting grid and the subsequent grids .
// instantiate a new GameGrid using the input as string // print 1st generation // loop through the generations requested to print out the resulting grid // update the gameGrid for this generation // print generation