-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathusage
21 lines (15 loc) · 970 Bytes
/
usage
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
usage: mainscript.rb -i [INPUT] -g [GENERATIONS] -o [OUTPUT] -d [DELAY] -t
eg: ./mainscript.rb -i cels/koksgalaxy.cel -g 8 -o cels/demofinal.cel
or: ./mainscript.rb -i cels/gosperglidergun.cel -g 60 -d 0.1
INPUT is the name of the input file. Expects a file in the form of
....
.xx.
.xx.
....
where x is a live cell and any other character is interpretted as a dead cell.
There are multiple examples provided in /cels.
If this is the only command line argument the INPUT file is printed and the program exits. This is the only required option.
GENERATIONS is the number of generations to calculate. Each generation is printed out to the console.
OUTPUT is the name of the output file. The script will write the final generation to this file in the format described in INPUT.
DELAY is the delay in seconds between printing of subsequent generations. Default is 0.8. Try 0 < N < 1.
-t is terse mode. Supresses output and delay.