Small project to teach myself Java ~2006.
Game of life rules:
- Any live cell with fewer than two neighbours dies, as if by loneliness.
- Any live cell with more than three neighbours dies, as if by overcrowding.
- Any live cell with two or three neighbours lives, unchanged, to the next generation.
- Any dead cell with exactly three neighbours comes to life.
Four versions, adding features as I progressed:
- GOLApplet: Initial version, implements the classic Game of Life
- GOLApplet2: Includes "diff" display between rounds. Red indicates cell death, green indicates cell growth.
- GOLApplet3: Buttons to start and stop the game, clear and randomise the board.
- GOLApplet4: Diff button to toggle diff display and you can draw when the game is stopped.
javac GOLApplet.java
javac GOLApplet2.java
javac GOLApplet3.java
javac GOLApplet4.java
HTML files are included that can embed the applets.