Added README for ch1-breeding-numbers experiment.
[surreal-numbers] / chapter-1-experiments / README.md
CommitLineData
8b1b73c9
AT
1# Overview #
2
3Program to breed N generations of surreal numbers and arrange them in order.
4
5# Status #
6
7Fully functional and tested on Debian 10.9 with Go 1.16.3.
8
9# Usage #
10
11Sample output is shown below for four generations. The vertical axis plots the
12numberline from smallest to largest and the horizontal axis plots generation.
13
14 % ./ch1-breeding-numbers -generations 4
15 . . . aas = <---|aag>
16 . . aag = <---|aac>
17 . . . aal = <aag|aac>
18 . aac = <---|aaa>
19 . . . aam = <aac|aad>
20 . . aad = <aac|aaa>
21 . . . aan = <aad|aaa>
22 aaa = <---|--->
23 . . . aao = <aaa|aae>
24 . . aae = <aaa|aab>
25 . . . aap = <aae|aab>
26 . aab = <aaa|--->
27 . . . aaq = <aab|aaj>
28 . . aaj = <aab|--->
29 . . . abd = <aaj|--->
30 After 4 generations, the universe contains 15 numbers.
31 If output looks poor, ensure tabstop is eight spaces and that output doesn't wrap.