README.md
1# 2d rewriter - a cellular automata simulator
2
3## Key features
4- Declarative input language for rules and initial patterns definition.
5- Ability to emulate Conway's *Life Game* via proper rules specification.
6- Ability to demonstrate self replicating loops.
7- Patterns are tried in 4 orientations.
8- Cell directions are defined against the pattern orientation.
9- Total number of rules can be substantially decreased by using *sets* and defining
10patterns using variables.
11- Required run time environment is a minimal X Window system installation on an
12POSIX-compatible system (\*BSD/Linux/Mac OS X/Cygwin/...).
13
14## How to build
15
16- The standard way. Run *xmkmf -a* to generate *Makefile* and then run *make*.
17- A less standard way. Run: *gcc `pkg-config --cflags --libs x11` -O3 -o2d-rewriter \*.c*
18- The hard way. Run something like: *gcc -Ix11inc -Lx11lib -lX11 -O3 -o2d-rewriter \*.c*
19 where *x11inc* is a path to X11 include files and *x11lib* is a path to X11 libraries.
20