https://github.com/krios2146/2d-simulation
Project is a step-by-step simulation of a 2D world populated by herbivores and predators with console UI
https://github.com/krios2146/2d-simulation
simulation
Last synced: about 1 year ago
JSON representation
Project is a step-by-step simulation of a 2D world populated by herbivores and predators with console UI
- Host: GitHub
- URL: https://github.com/krios2146/2d-simulation
- Owner: krios2146
- Created: 2023-01-30T02:55:19.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-09T08:40:26.000Z (over 3 years ago)
- Last Synced: 2025-04-13T20:55:35.412Z (about 1 year ago)
- Topics: simulation
- Language: Java
- Homepage:
- Size: 1.48 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simulation Project

Created according to the technical specifications presented
in [this course](https://zhukovsd.github.io/java-backend-learning-course/Projects/Simulation/)
# 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.

### 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](https://en.wikipedia.org/wiki/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