This part of the project is an implementation of Conway's Game of Life displayed on a graphics window with the ability for user interaction.
- CellularAutomaton (CA) class implementation for storing, displaying, and modifying a cellular automaton.
- GraphicsClient (GC) class implementation for easily communicating with a graphics window.
- GCMessage class implementation for storing and modifying messages sent to the graphics client from the graphics window.
- CAGraphicsSimulator class implementation for simulating a cellular automaton on a graphics window as well as allowing for user interaction.
- casimulator main method for initializing a CA and GC then simulating the CA graphically.
- Step, Run, Pause, Reset, Random, Clear, Load, Save (new), Quit, and Size 1-3 buttons for interacting with the graphically displayed CA.
- Togglable CA cells (click on a cell to toggle it on/off).
- If the file selected to load is not a cellular automaton (CA) then a blank CA is loaded.
Run this command to build the project.
make
To run this project successfully the graphics server must be running. You can do so with the following command.
java -jar GraphicsServerV2.jar <port>
Run this command to run the project.
./gol <text file path to CA definition (string)>
You can also use this command to run the project with a predefined CA.
make run
Run this command to clean the project (remove *.o and executable files).
make clean
- predefinedCAs is a folder for storing predefined cellular automaton definitions.
- savedCAs is a folder for storing saved cellular automaton definitions (created when user clicks the save button).