Coder Social home page Coder Social logo

imnetcat / ecosystem Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 28.62 MB

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

C++ 96.42% C 3.58%
cpp genetic-algorithm genetic-programming genetic sfml evolution

ecosystem's Introduction

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

ecosystem's People

Contributors

imnetcat avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

tommyteavee

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.