Skip to content

bychenkv/simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

54 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Simulation

A simple step-by-step simulation of a 2D world written in Java.

🎯 Overview

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

πŸš€ Getting started

Prerequisites

  • Java 22 or higher
  • Maven 3.8 or higher
  • Terminal with UTF-8 support (for emoji rendering)

Installation

  1. Clone repository

      git clone https://github.com/bychenkv/hangman.git
      cd simulation
  2. Build & run project

      mvn clean package
      mvn exec:java

🎬 Demo

asciicast

About

A simple step-by-step simulation of a 2D world written in Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages