OOP_B1_Project/Readme.md

1.6 KiB

Game of Life Project - Group B1

Overview :

This project expands Conway's Game of Life by adding custom rules, agent interactions, and an interactive GUI. The main highlight is the inclusion of a prey-predator model featuring Sheep and Wolf agents.

Features :

Standard and Custom Game of Life Rules: Supports both Conway's original rules and customizable rule sets. Prey-Predator Model: Includes Sheep and Wolf agents with distinct behaviors. Interactive GUI: Users can start, pause, and stop the simulation, and edit the world state in real-time. Speed Control: A slider allows adjustment of the simulation speed. Border Toggle: Switch between looping and closed borders. Random Initialization: Populate the world randomly using a probability slider. File Operations: Save and load world states, agents, and rules from files.

Running the Simulation :

  • Clone the repository.
  • Compile the project using your preferred IDE or the command line.
  • Run the Simulator class to launch the GUI.

GUI Instructions :

Buttons :

  • Start/Pause: Begins or pauses the simulation. If no world is loaded, a default world is created.
  • Stop: Halts the simulation and resets the world to its default state.
  • Toggle Border: Switches between looping and closed borders.
  • Random: Randomly populates the world with living or dead cells based on the probability set by the slider.
  • Save File: Saves the current world state, agents, and rules to a file.
  • Load File: Loads a world state, agents, and rules from a file.

Interacting with the World :

Toggle a cell's status by clicking on it. This makes it possible to modify or create the world's initial state.

Have Fun !