Skip to content

Predator & Prey cellular automaton Implemented with C++ and displayed with CAVIS

License

Notifications You must be signed in to change notification settings

Rapatas/predator_and_prey_sfml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Predator & Prey

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

Usage

predator_and_prey_sfml --height 100

Preview

Installation

Dependencies

Follow the project's installation instructions.

Predator & Prey

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

About

Predator & Prey cellular automaton Implemented with C++ and displayed with CAVIS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages