AlephAlpha / ca-rules

Parsing rule strings of life-like cellular automata
MIT License
2 stars 0 forks source link

【图】各类规则的关系 #2

Open AlephAlpha opened 5 years ago

AlephAlpha commented 5 years ago

graph

箭头表示包含关系,或者一类规则能用另一类规则来表示。

虚线表示 ca-rules 尚不支持(可能以后也不打算支持)的规则。

希望 ca-rules 能够做到:从表示上方的规则的字符串也能读出下方的规则;比如说 B3/S23H 表示的是一个 Totalistic hexagonal 的规则,但我希望能从它也读出一个 Non-isotropic Life-like 的规则。现在 ca-rules 还做不到。

图片是用 Graphviz 绘制的,Dot 代码如下:

digraph Rules {
    Life [label="Conway's\nGame of Life"];
    LifeLike [label="Totalistic\nLife-like"];
    Isotropic [label="Isotropic\nnon-totalistic\nLife-like"];
    Noniso [label="Non-isotropic\nLife-like" style=dashed];
    Neumann [label="Totalistic\nvon Neumann"];
    NonisoNeumann [label="Non-isotropic\nvon Neumann" style=dashed];
    Hex [label="Totalistic\nhexagonal"];
    Isohex [label="Isotropic\nnon-totalistic\nhexagonal"];
    Nonisohex [label="Non-isotropic\nhexagonal" style=dashed];
    LargerThanLife [label="Larger than Life" style=dashed];

    Life -> LifeLike  -> Isotropic -> Noniso;
    Neumann -> Isotropic;
    Neumann -> NonisoNeumann -> Noniso;
    Hex -> Isohex -> Nonisohex -> Noniso;
    LifeLike -> LargerThanLife;
    label="And the corresponding Generations rules for all the above.
Rules in dashed circles are not yet supported.";
    labeljust=left;
    labelloc=bottom;
    ratio=compress;
}
HuntingBot commented 5 years ago

先赞再看。@AlephAlpha EDIT:Conway's Game of Life不应该作为单独的分类吧……建议把它删掉,然后给每个分类分别弄几个“著名成员”。著名成员满足条件:属于该分类,并且不属于该分类的任何上级。 Totalistic Life-Like:Conway's Game of Life,HighLife,Seeds,Replicators。 Larger Than Life:Bugs,Jellyfish。 Isotropic Non-totalistic Life-Like:Snowflakes,ATPP,Dominoplex,SmokingLife,SparseMethuseLife,LoafLife。 Totalistic Hexagonal:Hexagonal Life。 待补充