This is a sample C++ app to use on a NumWorks calculator.
Langton's ant is a two-dimensional Turing machine with a very simple set of rules but complex emergent behavior. It was invented by Chris Langton in 1986
- 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
Use shift
to toggle to fast speed mode.
Download the latest version and go to the NumWorks website to install this application on your calculator.
This sample app is distributed under the terms of the BSD License. See LICENSE for details.
NumWorks is a registered trademark.