Graph-based cellular automata in C with evolutionary rule learning.
./mlql --nodes "v1;v2;..." --edges "s,d;..." --rules "CMP,thresh,OP,val;..." --steps N [--delay MS] [--max-cells N]Example:
./mlql --nodes "22;33;11" --edges "0,1;2,1" --rules "GT,5,SUB,2" --steps 20 --delay 100Arguments:
--nodes: Semicolon-separated initial cell values--edges: Semicolon-separated edges assrc,destpairs (optional)--rules: Semicolon-separated rules asCMP,threshold,OP,operand--steps: Number of simulation steps to run--delay: Optional per step delay in milliseconds--max-cells: Optional cell limit (default: 10000)
# Train a model
mlql train --config models/config.json
# Run a trained model
mlql run --model models/my_model.mlql [--steps N] [--visualise]ln -s /path/to/mlql/py/mlql.py ~/.local/bin/mlqltrain - Train a model using evolutionary search
--config, -c: Path to training config JSON file (required)
run - Run a trained model
--model, -m: Path to model.mlqlfile (required)--steps, -s: Number of simulation steps (default: 100)--visualise, -v: Show live visualisation
Simple 3-line text file:
nodes (semicolon-separated values)
edges (src,dest pairs)
rules (CMP,thresh,OP,val)