Skip to content

The "Island Life Simulation" project is a Java program that simulates the interaction between animals and plants on an island.

Notifications You must be signed in to change notification settings

DunkTrain/island

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Island Life Simulation

This project is a Java simulation of life on an island, where various species of animals and plants coexist in an ecosystem. The simulation allows users to observe the interactions between different types of animals and plants, and how they affect each other's populations over time.

Features

  • Animal Classes: The project includes various animal classes, such as predators (e.g., bear, snake, fox), herbivores (e.g., deer, goat, rabbit), and omnivores (e.g., mouse). Each animal class has its own unique characteristics and behaviors.

  • Island Settings: The IslandSettings class contains parameters and settings for the simulation, such as the maximum number of plants per cell, the size of the game field, the duration of each simulation step, and the basic parameters for each type of animal.

  • Initialization and Lifecycle: The WorldInitializer class handles the initialization of the initial state of the game world, including creating the island, populating it with animals and plants, and determining neighboring locations for each location. The WorldLifeCycle class manages the lifecycle of the simulation, starting and stopping it according to the specified parameters.

  • Utility Classes: The project includes utility classes, such as Randomizer, which is used for generating random numbers and events.

Getting Started

To run the simulation, simply execute the Main class. Follow the on-screen instructions to start the simulation and observe the island life unfold.


Симуляция Жизни на Острове RU

Этот проект представляет собой симуляцию жизни на острове на языке Java, где различные виды животных и растений сосуществуют в экосистеме. Симуляция позволяет наблюдать взаимодействия между различными видами животных и растений, а также их влияние на популяции друг друга со временем.

Особенности

  • Классы Животных: Проект включает различные классы животных, такие как хищники (например, медведь, змея, лиса), травоядные (например, олень, коза, кролик) и всеядные (например, мышь). Каждый класс животных имеет свои уникальные характеристики и поведение.

  • Настройки Острова: Класс IslandSettings содержит параметры и настройки для симуляции, такие как максимальное количество растений на клетку, размер игрового поля, длительность каждого шага симуляции и базовые параметры для каждого типа животных.

  • Инициализация и Жизненный Цикл: Класс WorldInitializer обрабатывает инициализацию начального состояния игрового мира, включая создание острова, население его животными и растениями, а также определение соседних местоположений для каждой клетки. Класс WorldLifeCycle управляет жизненным циклом симуляции, запуская и останавливая ее в соответствии с заданными параметрами.

  • Утилитарные Классы: Проект включает утилитарные классы, такие как Randomizer, который используется для генерации случайных чисел и событий.

Начало Работы

Для запуска симуляции просто выполните класс Main. Следуйте инструкциям на экране, чтобы запустить симуляцию и наблюдать за жизнью на острове.

About

The "Island Life Simulation" project is a Java program that simulates the interaction between animals and plants on an island.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published