This is an old NextJS project I made after struggling to find an online simulator capable of running the common notations for cellular automata rules that are Life-like, Elementary, Generations based, or BSFKL. This simulator also supports Hensel Notation.
The grammars for the different rule variations are as follows:
<Lifelike> ::= "B" <2d-neighbors> "/S" <2d-neighbors>
<Elementary> ::= "R" <rule-number>
<Generations> ::= <Lifelike> "/G" <DIGIT>
<BSFKL> ::= <Lifelike> "/F" <2d-neighbors> "/K" <2d-neighbors> "/L" <2d-neighbors>
Where <2d-neighbors> is a string of ascending digits bound from 0 to 8,
with the optional inclusion of Hensel notation modifiers. For example:
- 23
- -i34q
- 089
- ci3ai4c8
-
- 2-c34z
<rule-number> for <Elementary> type rules is an integer from 0 to 255.
It's not necessary to fully understand the syntax of the various rule-string notations to use this site, clicking the right arrow icon will change the viewer to simulate a random valid rulestring.