Skip to content

A Java implementation of Conway's Game of Life, with a selection of preloaded patterns.

Notifications You must be signed in to change notification settings

dakloepfer/GameOfLife

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

GameOfLife

A Java implementation of Conway's Game of Life, with a selection of preloaded patterns.

The main method is in the GUILife class, together with a few methods to facilitate using the GUI.

Both the PackedWorld and ArrayWorld classes achieve the same goal (storing a game world of fixed size) but the PackedWorld class uses a restrictive storage format (longs) that limits the size. Both ArrayWorld and PackedWorld inherit from the abstract World class. It is in these two classes that the next generation is computed.

The GamePanel class is needed for the GUI to run nicely.

The Pattern class bundles the information for a starting pattern up.

This program has been written as part of my Computer Science module in first year at University.

About

A Java implementation of Conway's Game of Life, with a selection of preloaded patterns.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published