/CellularAutomata

Collection of Cellular Automata programs

Primary LanguageC++

Cellular Automata Collection

Collection of cellular automata simulations.

Elementary cellular automaton with rule 90 Langton's ant
Conway's Game of Life Brian's Brain

Getting Started

The interface allows to implement other cellular automata, based on square grid easily. To implement new cellular automata, inherit from the abstract class CA::CellularAutomaton and override the update() and reset() methods accordingly. Also, to get the new state of the cell, based on its neighbors, you can inherit from the CA::Rule class and override the methods getNewState(). As an example, refer to the header and source files for any of the implemented automata, listed below.

List of implemented cellular automata:

Prerequisites

  • GNU GCC Compiler with C++14 support
  • SFML 2.5.1

Building

Clone the repository

git clone

Run make command

make

Running the program

Run the binary app inside bin.