From 0795f7bcfe15b5637092b9e050ea6144e6757791 Mon Sep 17 00:00:00 2001 From: laboon Date: Tue, 10 Nov 2015 10:52:00 -0500 Subject: [PATCH] derp changes --- com/laboon/Cell.java | 6 +++--- com/laboon/JavaLife.java | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/com/laboon/Cell.java b/com/laboon/Cell.java index f700d80..4d34ad2 100644 --- a/com/laboon/Cell.java +++ b/com/laboon/Cell.java @@ -66,11 +66,11 @@ public State iterate(int numNeighbors) { public char getStateRep() { char toReturn = ' '; if (_state == State.DEAD) { - toReturn = '.'; + toReturn = ' '; } else if (_state == State.ALIVE) { - toReturn = 'X'; + toReturn = '*'; } else { - toReturn = '?'; + toReturn = ' '; } return toReturn; } diff --git a/com/laboon/JavaLife.java b/com/laboon/JavaLife.java index f5c5a8e..8f5bcd3 100644 --- a/com/laboon/JavaLife.java +++ b/com/laboon/JavaLife.java @@ -4,8 +4,8 @@ public class JavaLife { /** * - * @param size Size of world - * @param seed Random number seed + * @param size Size of a world + * @param seed Random number seed for RNG * @param percent Percent of cells alive at beginning * @param maxIterations Maximum number of iterations */ @@ -13,9 +13,9 @@ public class JavaLife { public JavaLife(int size, int seed, int percent, int maxIterations) { World w = new World(size, seed, percent); System.out.println("Initial Configuration:"); - System.out.println(w.toString()); + System.out.println( w.toString() ); for (int j=0; j < maxIterations; j++) { - w = w.iterate(); + w = w.iterate(); System.out.println("Iteration " + (j + 1) + ":"); System.out.println(w.toString()); }