code / conway

Lines247 C195 make33 Markdown19
(48 lines)
1 .\" Manpage for conway.
2 .\" Contact bruce@bruce-hill.com to correct errors or typos.
3 .TH man 8 "13 June 2019" "1.0" "conway manual page"
4 .SH NAME
5 conway \- A command line Conway's Game of Life simulator
6 .SH SYNOPSIS
7 .B conway
8 [\fI-B\fR birth rule]
9 [\fI-S\fR survival rule]
10 [\fI-A\fR alive color]
11 [\fI-D\fR dead color]
12 .SH DESCRIPTION
13 \fBconway\fR is yet another Conway's Game of Life simulator for the terminal,
14 written in pure C with no external libraries.
16 .SH OPTIONS
17 .B \-B color
18 Set the birth rules for the simulation (default: "3")
20 .B \-S color
21 Set the survival rules for the simulation (default: "23")
23 .B \-A color
24 Set the hex RGB color of alive cells (3 or 6 hex digits).
26 .B \-D color
27 Set the hex RGB color of dead cells (3 or 6 hex digits).
29 .SH RULESETS
30 The default Conway's Game of Life ruleset is: a dead cell will come to life if
31 it has exactly 3 living neighbors, and a living cell will survive if it has 2
32 or 3 living neighbors. This ruleset can be changed with the \fB-B\fR and
33 \fB-S\fR flags. See \fIhttp://psoup.math.wisc.edu/mcell/rullex_life.html\fR for
34 some interesting rulesets.
36 .SH EXAMPLES
37 .TP
38 .B
39 conway -S 45678 -B 3
40 A coral-like ruleset.
42 .TP
43 .B
44 conway -A FB0 -D 226
45 A yellow-on-blue color scheme.
47 .SH AUTHOR
48 Bruce Hill (bruce@bruce-hill.com)