Link back home

General portfolio here.

See this link for more on the game of Life.


Entire set of Java classes as a single .zip file at this link.


(Open) source code to my Java applet Life (game at this link), probably not in any “perfect” order:



As downloadable .java file:

As html, with “nicer” formatting:

What about:

Life.java

Life.html

The main “driver” program.

UI.java

UI.html

User interface.

HandleASingleGeneration.java

HandleASingleGeneration.html

Does calculation to compute a single generation of game. Calls next to do real dirty work.

PaintBoardAndComputeNextGeneration.java

PaintBoardAndComputeNextGeneration.html

Does two things, as obvious by name — more efficient to the two put together.

BoardUtilities.java

BoardUtilities.html

Board utilities, general things that need done — put all here.

Initializations.java

Initializations.html

Obvious by name.

HowGameIsPlayedScreen.java

HowGameIsPlayedScreen.html

Games rules, general nonsense.

HandleButtons.java

HandleButtons.html

Handles buttons.

ManageBoardCoordinates.java

ManageBoardCoordinates.html

Handles coordinates of board, mathematical stuff.

RepeatPattern.java

RepeatPattern.html

Do we get caught in a repeating pattern? This class handles it.

ScreenLocations.java

ScreenLocations.html

Where on screen are things placed?

Objects.java

Objects.html

Instantiates objects.

GenerationNumberCanvas.java

GenerationNumberCanvas.html

Paints generation number.

HandleGamesEnd.java

HandleGamesEnd.html

What happens when game ends.

PopupWindow.java

PopupWindow.html

Handles popup windows.

Pause.java

Pause.html

A thread that “sleeps” a time.

Vars.java

Vars.html

Handles hiding variables

Constants.java

Constants.html

Numeric constants.

Strings.java

Strings.html

String constants.