Challenging the assumption that a rule is something a computer calculates.
I wrote an ordinary Sudoku as pure functions, then wrote it again with every function name and signature unchanged and every body replaced by a one-line description. A language model is asked to be each function: it gets the description and the arguments, has no tools and cannot run code, and has to work out the return value. A JSON schema fixes the shape of each answer; nothing checks whether it is true. You place a digit, and everything that comes back (the new board, whether the move was legal, which cells clash) is performed by the model, sometimes wrongly.
“The core is to use Sudoku to show hallucination in a way that’s fun.”
Design note, during the buildHow might we make a language model’s confident mistakes visible at a glance, to people who have never read a line of its output?



The plain version keeps all data immutable and every function pure; input and output happen only in a thin outer loop, the shell. The second version keeps every name and signature and swaps each body for a sentence:
def is_valid_move(board, r, c, v): return v in DIGITS and all( board[i][j] != v for i, j in peers(r, c))
def is_valid_move(board, r, c, v): return llm.request( "return true iff v is a digit from 1 to 9 and no other cell in the same row, column or 3x3 box as (r, c) already holds v; …", inputs=…, returns=llm.BOOL)
A useful side effect: in the computed version, one move runs step, which calls is_valid_move, which calls peers, and so on down. In the performed version step is one sentence, and all of that disappears into whatever the model does when it reads it. On the web, a move costs two calls: parse_command, then step.
The first deployment used a larger model. A new board took more than a minute and still hadn’t arrived; the only answer that came back was the fixed help text. There was nothing to watch.
Every answer was cached so the game would behave like real pure functions. When the performer wrongly refused a move (“r1c2 is a given and cannot be changed”), the cache handed the same refusal to everyone who reached that board, and the game stalled on that move.
Each call takes seconds. With a locked page, those seconds felt like a broken game.
Checking every answer against arithmetic was less interesting than letting the model’s claims play out on the board.
The type of every answer is guaranteed. The value is not.
Assumes: mistakes come often enough to be seen, but rarely enough that the game stays playable.
“Shouldn’t our expectations include the same command giving different results when it runs more than once?”
Turning point in play-testingA performed function is slow, and the delay can’t be engineered away. So I asked for the wait itself to become part of the show. Claude Code proposed the mechanics below; I kept them, and cut a rendering panel after playing with it:
AI is in this project twice. Claude Haiku is the performer inside the piece. Claude Code was my collaborator in building it: it wrote most of the code and proposed options, and I made the calls on what the piece should feel like by playing it.
Dots show how much of each part Claude Code did.
Claude Code offered two fixes: keep the cache and add a retry button, or cache only the opening. I chose the second, because a pure function may roll dice inside it. (A retry link, “ask again”, was added later anyway.)
The flash was gone before you could read it. A highlight that stays shows what the performer is accusing.
Making a model wrong on purpose took more design than making it right. I picked the model, its effort level and the caching rule so that mistakes would happen often, show up on the board, and not end the game.
The shell is the frame: the only code that stayed real is the loop that reads your click and draws what comes back, and it decides what a visitor can see. Most of my decisions ended up there.
Asked to invent a brand-new puzzle from seed 2026, the performer handed back the example puzzle from Wikipedia’s Sudoku article, plus ten digits of its own. Two of them clash.
Observed on the wall text