Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 4, 2024. It is now read-only.
/ ecosystem Public archive

Interactive virtual ecosystem. Cells evolution. Evolution from unicellular to multicellular organisms in a virtual world

Notifications You must be signed in to change notification settings

imnetcat/ecosystem

Repository files navigation

Ecosystem

This is interactive cells ecosystem simulation.

Concept

This is implementation of the cells genetic algorithm with natural selection in a virtual world. The world is a 2D grid of cells closed along the x axis.

World rules

The world is somewhat like a cross-section of a small reservoir, like lake or jar with watter.

  • World 2D
  • World closed along the x axis
  • There are live cells. They can:
    • born (in several ways)
    • die of lack of food, after death, the cell turns into organic matter
    • die from old age, after death, the cell turns into organic
    • eat food. Food for cells can be:
      • light
      • organic
      • another live cell
    • be eaten by another cell
    • actions, diet and properties of the cell are determined by the genome
    • the genome of the cell can mutate, or it can remain the same
  • Organic has a gravity and fall down to the bottom
  • Light falls from above and with each passed cell its power becomes less and less

Dependencies

SFML 2.6.1+ TGUI

##Install dependencies with vcpkg:

Install vcpkg:

git clone https://github.com/microsoft/vcpkg
.\vcpkg\bootstrap-vcpkg.bat

Install dependencies:

.\vcpkg\vcpkg install sfml:x64-windows
.\vcpkg\vcpkg install tgui:x64-windows

Benchmarks

100x51 world, 4000 life entities Render max time: 199431 ms Simulation tick update max time: 1020 ms

TODO:

  • Decompose GUI from data
  • Use new GUI libraries
  • Use vpkg for manage dependencies
  • Decompose genetic algorithm from it's special implementation

About

Interactive virtual ecosystem. Cells evolution. Evolution from unicellular to multicellular organisms in a virtual world

Topics

Resources

Stars

Watchers

Forks

AltStyle によって変換されたページ (->オリジナル) /