amog.fun∘
hackenbush : Stacks → Surreals

Blue-Red Hackenbush

Stacks of coloured tokens. Pick your side under "Your side": blue or red. Amog gets the other colour. On your turn remove one token of your colour, and every token above it falls off too. Whoever has no token to take loses.

Why Amog always wins

Every stack is a number

This game is partizan: you and Amog have different moves, so Sprague–Grundy does not apply. Instead each position is a surreal number (Conway, On Numbers and Games), positive when it favours blue.

\begin{definition}The value of a single token is $+1$ if blue and $-1$ if red. A stack whose bottom $c$ tokens share a colour, followed by tokens $t_1, t_2, \dots$ above the first change of colour, has value $$v = \pm c + \sum_{j \ge 1} \frac{\sigma(t_j)}{2^j}, \qquad \sigma(\text{blue}) = +1,\ \sigma(\text{red}) = -1.$$\end{definition}

\begin{example}Blue, blue, red (bottom to top) is $2 - \frac12 = \frac32$. Blue, red, blue is $1 - \frac12 + \frac14 = \frac34$.\end{example}

\begin{theorem}[Berlekamp, Conway, Guy]The value of a position is the sum $V$ of its stack values. If $V > 0$ blue wins whoever starts, if $V < 0$ red wins whoever starts, and if $V = 0$ the player to move loses.\end{theorem}

\begin{remark}Every value is a dyadic rational $\frac{m}{2^k}$. To win, make a move that keeps $V$ on your side of $0$, and among those take the token that costs you the least: usually the highest one of your colour sitting above a colour change.\end{remark}