Skip to content

DiegoCico/PredatorPreySim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Animal Simulation Project

Welcome to the Animal Simulation Project! This project simulates the interactions between prey and predators in a dynamic environment, complete with a graphical representation of their population changes over time.

  • Table of Contents
  • Features
  • Installation
  • Usage
  • Class Descriptions
    • Animal
    • Predator
    • Prey
    • GraphFrame
    • SimulationGUI
  • License

Features

Simulates prey and predator interactions with age, breeding, and movement behaviors. Visual representation of the simulation using Java Swing. Dynamic graph displaying population changes of prey and predators over time.

Installation

Clone the repository:

git clone https://github.com/diegocico/predadorpreysim.git cd animal-simulation

Compile the Java files:

javac *.java

Run the simulation:

java Main

Usage

After running the simulation, a window will open displaying the simulation area and the graph. Prey are represented by green circles, and predators are represented by red circles. The graph updates in real-time to show the population changes.

About

PREDATOR AND PREY SIMULATION, UTILIZING A GRAPH

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages