Skip to content

This project involves creating a simulation inspired by Darwin's Theory, where animals interact in an environment. The animals move around a map, consume grass for energy, and engage in reproduction.

Notifications You must be signed in to change notification settings

daredevilq/oop-evolution-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 

Repository files navigation

oop-evolution-project

This project was made for the Object-Oriented Programming course at the AGH UST in 2023/2024.

Authors:

  • Piotr Śmiałek
  • Tomasz Furgała

Description

This project involves creating a simulation inspired by Darwin's Theory, where animals interact in an environment. The animals move around a map, consume grass for energy, and engage in reproduction. To survive, animals must eat to increase their energy, and reproduction involves using some of the parent's energy. Animals ultimately die when their energy is depleted.

Each animal possesses a genome, which is a combination of genetic information inherited from its parents. The genome consists of numbers ranging from 0 to 7. Each number correlates with the animal's inclination to move in a specific direction on the map. The frequency of a particular digit in the genome determines the likelihood of the animal moving in the corresponding direction. In essence, the genome influences the animal's movement preferences, contributing to its survival and reproduction in the simulated environment.

Additional variants: E-3

Functionalities

  • Showing simulation preview window,
  • Running multiple simulation at the same,
  • Adjusting the speed of the simulation,
  • Highlighting animals with dominant genomes,
  • Showing dominant genomes list,
  • Tracking the specific animal,
  • Showing statistics about simulation and currently tracked animal,
  • Saving statistics to a file

Setup

Clone project to your computer

git clone https://github.com/daredevilq/oop-evolution-project.git

And run Main file

cd .\darwinworld\
./gradlew run  

Core

  • Java 17
  • Gradle,
  • JavaFX
vid1.mp4
vid2.mp4

About

This project involves creating a simulation inspired by Darwin's Theory, where animals interact in an environment. The animals move around a map, consume grass for energy, and engage in reproduction.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published