Lab · Exhibit 02
Logic Grid, a puzzle that checks itself.
I gave Replit Agent a screenshot of a Futoshiki puzzle from a newspaper website, with no explanation at all. It came back with this complete game in one go. Fill each row and column with 1 to 5 and respect the arrows between cells.
- Built with
- Replit Agent
- Prompt
- One screenshot, no text
- Made
- Stack
- React, TypeScript, Tailwind
- Runs
- Entirely in your browser
Under the hood
One answer, guaranteed
Each time you press New, the game builds a random Latin square, keeps a dozen or so of the comparisons between neighbouring cells, and then reveals numbers one at a time while a small solver counts the possible answers. It stops when exactly one remains, then takes back any clue that turns out to be unnecessary.
That is the part a good puzzle book editor does by hand. Here the agent wrote it, with the solver and the generator in about 200 lines.
The prompt
A screenshot and nothing else
There was no written prompt. I took a screenshot of a Futoshiki puzzle on a newspaper website and gave it to Replit Agent without a word of explanation. It must have known the rules already, because it worked out what the game was, built the generator, the grid, the number pad, the checking and the timer, and handed back something I could play straight away.
It was one attempt, and the result is very playable and a lot of fun.
Contact
Questions, ideas or a conversation?
I’m always glad to hear from people working on AI, product strategy, transformation or software.