edirab / CyberBiology3

Artificial evolution, made mostly with C

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CyberBiology3

Artificial evolution

This is a little entertainment project, evolution simulator. The code itself is far from best. Lazily written, a lot of code in headers, unconditional jumps at couple of places etc. I'll make it better in later versions!

Screenshots

Screenshot1 Screenshot2

What you need to build it

How to run this code

  • Set include directories for all libraries listed above. And paths for SDL dll-s.
  • Place imgui_sdl.h, imgui_sdl.cpp and SDL2_ttf.dll at project root, or change #include paths in headers
  • Enjoy!

Interface

Main window

Contains all info about simulation

System

Info about your PC

Controls

  • Start/Stop button (Pause/unpause)
  • food - ignore it
  • skip - how many turns you calculate before you draw new frame (set to 0 if you want render on every frame)
  • brush - brush size for mouse actions sich as remove

Selection

Info about selected bot, some useful buttons to mess with it

Display

Rendering method.

  • Bot natural color (just its color)
  • Bot rations (carnivores red, herbivores green, grey if never ate)
  • Energy (yellow = low energy, red = maximum energy)
  • No render means you only compute without rendering, starts to simulate very fast

Console

Whatever

Mouse function

Choose what to do with your mouse clicks

Aditional

Some more windows

Keyboard

Using keyboard is more handy because interface becomes laggy during simulation

  • "Space" - Start/Pause
  • "Plus sign near numpad" - make 1 step
  • "Backspace" - Spawn group of randoms
  • "Numpad 1-4" - Select render method

About

Artificial evolution, made mostly with C

License:GNU General Public License v3.0


Languages

Language:C 95.7%Language:C++ 4.3%