Explanation
A mobile agent is simulated which has the single state of its heading. Global state is stored in a grid of theoretically infinite binary cells. The grid starts with all blanks. Inspect the current value of the cell the agent is on top of at each step:- If 0, turn 90 degrees clockwise.
- If 1, turn 90 degrees counter-clockwise.
Then add 1 to the cell value and move one step forward.en.wikipedia.org/wiki/Langton's_ant
Requirements
You can install a web browser that supports at least JavaScript 1.0 (1995) to use this tool or you may consider implementing a GemiWeb0 browser with JavaScript0 yourself according to the following specification:bkil.gitlab.io/gemiweb0
Simulation
Start