[surreal-numbers] / chapter-1-experiments /
drwxr-xr-x   ..
-rw-r--r-- 726 Makefile
-rw-r--r-- 935 README.md
-rw-r--r-- 15249 ch1-breeding-numbers.go

Overview

Program to breed N generations of surreal numbers and arrange them in order.

Status

Fully functional and tested on Debian 10.9 with Go 1.16.3.

Instructions

Sample output is shown below for four generations. The vertical axis plots the numberline from smallest to largest and the horizontal axis plots generation.

% ./ch1-breeding-numbers -generations 4
.       .       .       aas = <---|aag>
.       .       aag = <---|aac>
.       .       .       aal = <aag|aac>
.       aac = <---|aaa>
.       .       .       aam = <aac|aad>
.       .       aad = <aac|aaa>
.       .       .       aan = <aad|aaa>
aaa = <---|--->
.       .       .       aao = <aaa|aae>
.       .       aae = <aaa|aab>
.       .       .       aap = <aae|aab>
.       aab = <aaa|--->
.       .       .       aaq = <aab|aaj>
.       .       aaj = <aab|--->
.       .       .       abd = <aaj|--->
After 4 generations, the universe contains 15 numbers.
If output looks poor, ensure tabstop is eight spaces and that output doesn't wrap.