amog.fun∘
wythoff : ℕ² → (0, 0)

Wythoff's Game

A queen that only moves left, down, or diagonally down-left, any distance. Whoever moves her into the green corner wins. It is Nim with two heaps where you may also take the same amount from both.

Why Amog always wins

The golden squares

Let $\varphi = \frac{1 + \sqrt 5}{2}$. The squares where the player to move loses (the red dots when you show the math) are exactly

$$\bigl(\lfloor k\varphi \rfloor,\ \lfloor k\varphi^2 \rfloor\bigr) \quad\text{and its mirror}, \qquad k = 0, 1, 2, \dots$$

\begin{theorem}[Wythoff, 1907]The position $(a, b)$ with $a \le b$ is a loss for the player to move if and only if $a = \lfloor (b - a)\,\varphi \rfloor$.\end{theorem}

\begin{theorem}[Beatty, Rayleigh]The sequences $\lfloor k\varphi \rfloor$ and $\lfloor k\varphi^2 \rfloor$ for $k \ge 1$ partition the positive integers, because $\frac{1}{\varphi} + \frac{1}{\varphi^2} = 1$.\end{theorem}

That is why each row, column and diagonal holds exactly one losing square, and why every other square can reach one.