A simple step-by-step simulation of a 2D world written in Java.
This simulation creates a 2D grid-based world where:
- Herbivores π search for and consume grass
- Predators πΊ hunt herbivores
- Resources π± (grass) spawn dynamically on each iteration
- Static objects πͺ¨ (rocks) / π³ (trees) block movement
Each creature uses BFS pathfinding algorithm to navigate toward target resources.
The simulation runs in real-time with a terminal-based UI that allows
- pausing / resuming
- stopping
- map scrolling
- Java 22 or higher
- Maven 3.8 or higher
- Terminal with UTF-8 support (for emoji rendering)
-
Clone repository
git clone https://github.com/bychenkv/hangman.git cd simulation -
Build & run project
mvn clean package mvn exec:java