• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

examples/H03-May-2022-309246

2d-rewriter.cH A D25-Feb-202017 KiB786635

2d-rewriter.manH A D25-Feb-20206.9 KiB179172

ImakefileH A D25-Feb-20201.2 KiB2823

README.mdH A D25-Feb-2020977 2016

graphics.hH A D25-Feb-20201.7 KiB4318

scanner.cH A D25-Feb-20205.6 KiB269216

scanner.hH A D25-Feb-20201.3 KiB3915

util.cH A D25-Feb-20203.4 KiB155104

util.hH A D25-Feb-20202.5 KiB9159

view.cH A D25-Feb-20205.3 KiB201165

view.hH A D25-Feb-20201.4 KiB3713

x11.cH A D25-Feb-20205.9 KiB247189

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