Skip to content

camrws/Conways-Game-of-Life

Repository files navigation

COMS 327 - Project 2 Part B

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.

Features Implemented

  1. CellularAutomaton (CA) class implementation for storing, displaying, and modifying a cellular automaton.
  2. GraphicsClient (GC) class implementation for easily communicating with a graphics window.
  3. GCMessage class implementation for storing and modifying messages sent to the graphics client from the graphics window.
  4. CAGraphicsSimulator class implementation for simulating a cellular automaton on a graphics window as well as allowing for user interaction.
  5. casimulator main method for initializing a CA and GC then simulating the CA graphically.
  6. Step, Run, Pause, Reset, Random, Clear, Load, Save (new), Quit, and Size 1-3 buttons for interacting with the graphically displayed CA.
  7. Togglable CA cells (click on a cell to toggle it on/off).

Known Errors and Issues

  • If the file selected to load is not a cellular automaton (CA) then a blank CA is loaded.

Usage (How to Execute)

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

Miscellaneous

  • 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).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published