Game of Life - executable, Eclipse and Maven projects

                     Game of Life


The Game of Life program first creates a two-dimensional field, links its nodes and initialises the weights. To do this, the methods LifeUniverse.createNet() and LifeUniverse.initNet() are called. The development of the generations is then visualised, whereby the program is controlled via keyboard input:


  • key input I stands for Init
    ... calls LifeUniverse.initNet()
  • key input S stands for Step
    ... calls LifeUniverse.updateNet()
  • key input R stands for Run
    ... calls LifeUniverse.updateNet() in a loop
  • key input P stands for Pause
    ... interrupts the programm
  • key input E stands for Exit
    ... terminates the programm

The complete program consists of four classes:

  • LifeCell.java
    models the functionality of a single cell
  • LifeUniverse.java
    models the dynamic aspects of the Game of Life
  • StdDraw.java (from Princeton University)
    provides basic capabilities for creating drawings
  • LifeApp.java
    contains the program's main method

Download links: