Skip to content

LuisChineaRangel/langton-ant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Langton's Ant

License: MIT Twitter


2022-10-23.01-01-30.mp4

Introduction 📋

Langton's ant is a two-dimensional universal Turing machine with a very simple set of rules but complex emergent behavior. It was invented by Chris Langton in 1986.

Squares on a plane are colored variously either black or white. We arbitrarily identify one square as the "ant". The ant can travel in any of the four cardinal directions at each step it takes. The "ant" moves according to the rules below.

  • At a white square, turn 90° clockwise, flip the color of the square, move forward one unit.
  • At a black square, turn 90° counter-clockwise, flip the color of the square, move forward one unit.

Features ✨

  • Use of Multithreading for better performance.
  • Support for Windows and UNIX.
  • Compatibility whith UTF-8.

Install 🔧

git clone https://github.com/iluzioDev/langton-ant
cd langton-ant
make

Usage 💡

Given a board size (via User Input), the program will indefinitely execute the movements of a Langton's ant introduced in the center of the grid. Users can cancel the study at any time.

Maintainers 👷

IluzioDev
IluzioDev

💻

License ⚖️

Distributed under the MIT License. Click here for more information.