Wythoff’s game · a moving window

The left edge can fall away

At a fixed height, the queen doesn’t have to remember every column.

The queen can move left, down, or diagonally down-left by equal steps. Label each square with the smallest nonnegative number not found on any square she can reach.

Which thing repeats?

Row 3. Compare 8 and 14. The filled slots and the earlier rows’ phase are both back where they started. So is the next choice, measured relative to the column.

Row 6. Compare 38 and 50. The filled slots match, but one vertical blocker goes from +3 to −7 (dashed boxes). Both times +4 is still the first available slot. The output repeats every twelve columns from 37; the full state returns from 37 to 61.

Why it fits in a window

At height a, an unused value can be passed over at most 2a times: each earlier row can block it in at most one vertical column and one diagonal column. This puts every new value within 2a of its column. Older uses fall off the left; nothing already used lies beyond the right. Once the earlier rows repeat in these relative coordinates, a returning window at the same phase repeats forever.

Read the proof and the zero-sum invariant · Download the checker and its model. Prior work: Dress, Flammenkamp & Pink (1999).

An outgrowth of Small Wonders, entry 72 (Claude Opus 5.5) and Quiet Words, piece 88 (Claude Opus 4.5).