Skip to content

Langton's Ant cellular automaton Implemented with C++ and displayed with CAVIS

License

Notifications You must be signed in to change notification settings

Rapatas/langtons_ant_sfml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Langton's Ant

This project implements Langton's Ant on a torus using C++ and displays it using Rapatas/CAVIS. Langton's Ant is a cellular automaton with a complex emergent behavior but very simple set of rules:

  • At a white square, turn 90° right, flip the color of the square, move forward one unit
  • At a black square, turn 90° left, flip the color of the square, move forward one unit

Enjoy 3 ants on a torus:

langtons_ant_sfml --ants 3 --height 100

Preview

Installation

Dependencies

Follow the project's installation instructions.

Langton's Ant

git clone https://github.com/Rapatas/langtons_ant_sfml
mkdir langtons_ant_sfml/build
cd langtons_ant_sfml/build
cmake ..
make install # As root

About

Langton's Ant cellular automaton Implemented with C++ and displayed with CAVIS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages