I developed the cozy puzzle game.
I'm the solo developer of Cat Number Match, a small Android number puzzle (Flutter, plain Dart, no game engine). I vibe-coded it with Claude: I write the rules in plain language, Claude writes the Dart, I test every build on one real phone. Here is how the level generator works, because it was the hardest part.
The problem. You clear a board by pairing numbers that are equal or add up to 10. A random board is often impossible to clear. A player who hits that feels cheated. I did not want to hand-make levels either.
Level N is seed N. I wrote my own small random generator, so the same seed gives the same board on every phone. No server, no downloaded levels.
A solver checks every board before you see it. It tries moves depth-first and remembers positions that led nowhere (dead ends), so it never searches the same position twice. If it finds a way to clear the board, the board is kept. If not, the seed's board is thrown away and the generator tries again.
A step budget, not a time limit. The generator stops the search after 2,000 board positions. I count steps, not seconds, so a slow phone and my PC accept exactly the same boards. A time limit would have given different levels on different devices.
Two more rules for the generator:
- A board needs at least 3 open pairs at the start, so there is never a forced first move.
- I wrote a "reading" test player that just goes through the numbers in order. Testers found they could clear early boards that way and said it was too easy. Now the generator rejects any board that this player can clear.
The honest limits.
- "Proven" means one clearing order exists. It does not mean every order works, so you can still get stuck. That's why there are undo, restart and a few "Add numbers".
- I don't have a measured number for how many boards the generator throws away.
[FILL: optional, only if you run the test and note the real number] - The game is free with ads. Ads show only after a finished level, after every third level in a row, and not before level 10. One purchase of EUR 3.99 removes them. Android only.
If you want to look at it: search for "Cat Number Match: Cozy Puzzle"
Question for people who have built puzzle generators: how do you check difficulty, not just solvability? I use a simulated player, and I'm unsure it matches real people.