Skip to content

AdamRajfer/war-of-insects-simulator-cpp

Repository files navigation

Simulation of war between insects

The simulator was developed in order to visualize the war between four insect species:

  • ants (red points),
  • wasps (blue points),
  • dytiscidaes (white points),
  • thanasimuses (green points).

Species and their enemies

  • Ants attack wasps.
  • Wasps attack dytiscidaes.
  • Dytiscidaes attack thanasimuses.
  • Thanasimuses attack ants.

Completion of the simulation

  • There are only insects of one species in the environment.
  • There are only insects of two species that don't attack each other in the environment.

Eusocialities and their roles

  • Soldiers need to kill the enemy insect.
  • Workers need to cure the injured (alive) insect from their family.
  • Drones need to inseminate the queen and regenerate.
  • Queens need to be inseminated by drones in order to born the new soldiers.

Dependencies

sudo apt install cmake
sudo apt install libsfml-dev

Building the simulation

bash build_simulation.sh

Running the simulation

bash run_simulation.sh