This project implements the cellular automaton Predator & Prey using C++ and displays it using Rapatas/CAVIS. Predator & Prey is simulating an environment where a predator (red) and a prey (green) exist in a harmonic balance using the following set of rules:
- If a prey moves, it multiplies in the previous position
- If a predator lands on a prey, it turns it into a predator
- Predators die after 10 rounds
predator_and_prey_sfml --height 100
Follow the project's installation instructions.
git clone https://github.com/Rapatas/predator_and_prey_sfml
mkdir predator_and_prey_sfml/build
cd predator_and_prey_sfml/build
cmake ..
make install # As root