-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3b606ed
commit b1d9c1b
Showing
2 changed files
with
58 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Automaton naming | ||
|
||
_Automaton description format_ | ||
|
||
## Examples | ||
|
||
The following entries all describe rule 110: | ||
|
||
- `1d, ns3, 2c, r110` | ||
- `1d,ns3,2c,r110` | ||
- `e110` | ||
|
||
They are the compact version of the following entries: | ||
|
||
- `1 dimension, neighborhood size 3, 2 colors, rule 110` | ||
- `elementary 110` | ||
|
||
Cellex handles only monodimensional rules, so rule descriptions beginning by `2d` or `3d` will be rejected. | ||
|
||
By default, Cellex assumes the following: | ||
|
||
- The dimension is one | ||
- The neighboor size is three | ||
- The number of colors is two | ||
- The rule number has no default value and must always be specified | ||
|
||
Therefore, the following entries are all recognised and also refer to rule 110: | ||
|
||
- `1d,ns3,r110` | ||
- `1d,2c,r110` | ||
- `ns3,2c,r110` | ||
- `1d,r110` | ||
- `ns3,r110` | ||
- `2c,r110` | ||
- `r110` | ||
|
||
Note that the order of the fields is must be preserved. | ||
|
||
Upon pressing enter, the rule text input will normalize the entry and compact it, removing unecessary parameters and setting all letters to lowercase. | ||
|
||
In case there are no letters in the input, the parser will proceed as follow: | ||
|
||
- If the number is between 0 included and 256 excluded, it will be read as an elementary rule. | ||
- If the number is greater or equal to 256, it will first try to parse it with a neighborhood size of three and with three colors, then with four colors, then with five colors and then with six colors. | ||
|
||
The automaton description format supports the case of totalistic codes. The totalistic codes are the rules whose value depends only on the number of occurence of each of the colors in their neighborhood. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters