Sudoku Slide Chess

A playable reading of xkcd 3139, “Chess Variant” — Randall Munroe's sliding number puzzle chess. Numbered officers, one hole, a board that rotates.

0number clashes
0rank clashes
0cost / par 0
0:00clock

Table

Trace a number

Move log

How it plays

Every piece carries a number. One square is a hole. Three moves, three prices:

  • Chess move — cost 1. Click a piece. If it can legally reach the hole, the ringed square lights up. The piece glides there; the hole takes its place. Sliders are blocked by other pieces, as always.
  • Swap — cost 2. Two pieces trade squares if either one attacks the other. Dashed rings mark the partners. Turn on duels only for the tighter game, where both must attack.
  • Rotate — cost 3. Use the handles beside the board, or the arrow keys, to cycle the hole's row or column by one. Every square in that line shifts and the far end wraps around. Only lines through the hole may rotate, so the hole is your cursor.

You win when no number repeats in any row, column or region. There is a second objective hidden in the same grid — see below.

The rank layer, and notes for the mathematically curious

Pawns have no forward here. On a board that rotates, "forward" is not well defined, so a pawn steps one square orthogonally and swaps one square diagonally. That also keeps every move type an involution, which is why the scramble can always be run backwards — every puzzle is solvable, and the recorded line proves it.

A row rotation is an N-cycle, odd for even N, so the parity obstruction that halves the 15-puzzle's state space does not apply here. Rotations preserve the very constraint family they scramble elsewhere: shift a row and its own row stays clean while its columns and regions break. That interference is the game.

Clearing numbers and ranks together is fine. Making every (rank, number) pair distinct is not, at 6×6: that is Euler's problem of the 36 officers, ruled out by Tarry in 1901 — there is no pair of orthogonal Latin squares of order 6. It works at 4×4 and 9×9, and only there among these three. The puzzle never asks for it.

Keys: ← ↑ → ↓ rotate · U undo · R redo · H hint · Esc deselect

Solved