Skip to content

Project is a step-by-step simulation of a 2D world populated by herbivores and predators with console UI

Notifications You must be signed in to change notification settings

krios2146/2d-simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simulation Project

README.img.png

Created according to the technical specifications presented in this course

Overview

The point of the project is a step-by-step simulation of a 2D world populated by herbivores and predators. In addition to creatures, the world contains resources (grass), which the herbivores feed on, and static objects with which you can't interact - they just fill the space.

img.png

Implemented features:

  • Creature actions:
    • Herbivores can either go towards the Grass or eat it
    • Predators can either go towards the Herbivores or eat them
  • Breadth-first search used as pathfinding algorithm
    • algorithm excludes stationary (Tree & Rock) objects from pathfinding
  • Renderer displays the current state of the simulation in the console output

About

Project is a step-by-step simulation of a 2D world populated by herbivores and predators with console UI

Topics

Resources

Stars

Watchers

Forks

Languages