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