Skip to content

Latest commit

 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Darwin World Simulator

Description

This code simulates the evolution of animals in a world. The world is a 2D map with a grid of fields. Each field can be empty or occupied by an animal. Animals can move, eat, reproduce and die. The simulation is based on the following rules:

  • Each animal has a set of parameters: energy, age, children, plants eaten and genotype. Energy and genotype are inherited by offspring with some mutations.
  • Each animal has a set of genes that determine its behavior. The genes are inherited by offspring with some mutations.
  • Each animal has a set of actions that it can perform: move, eat, reproduce.
  • If an animal has no energy, it dies.
  • We can choose mutation and plants types.

Choosing parameters:

solution

solution

Choosing types:

solution

solution

Generated world map (first day):

solution

Second day - first animal moves:

solution

Showing parameters:

img.png

Choosing animal to track:

solution

Tracking animal parameters:

solution

About

Darwin world simulator written in Java made as part of the "object-oriented programming" course during our 3th semester of CS

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages