-
Notifications
You must be signed in to change notification settings - Fork 0
f_Turmites
rasberry edited this page Jan 11, 2024
·
1 revision
Turing machine mites/ants. see https://en.wikipedia.org/wiki/Turmite
-p (string) LR pattern string. See below for full language (default 'LR')
-e (edge rule) Change edge handling rule (default Wrap)
-s (x,y) Starting location of turmite (defaults to center coordinate)
-i (number) Number of iterations (default 1000)
Available Edge Rules:
0. None
1. Wrap Wrap around to the other side
2. Reflect Turn around at the edge
Pattern language:
The pattern language consist of a string of characters used to decide which action to take.
Adding a number after the letter will repeat that rule. For example R3 is the same as RRR.
L Make a left turn (counterclock-wise)
R Make a right turn (clock-wise)
U Turn around (180 degree turn)
F Continue forward (no turn)
N Point north
S Point south
E Point east
W Point west
Images | |
---|---|
Default | |
-p LRRL | |
-p LRRL -i 1e+7 | |
-p LRRL -e reflect -i 1e+7 |