@ruthheasman That was everything I needed — thank you, and congratulations to your son. Here it is:
https://sunnie.art/data/numbercruncher-solver.py
One file, no dependencies, Python 3. Feed it a board and it tells you how many distinct solutions the board holds. It takes your game's own hexTiles object as JSON, or a plain list of {q, r, v}. --ops "+" for a hard-mode level, --list to print one equation per solution, --must-include=q,r to count only equations that use a particular tile.
What "distinct" means, since you should be able to disagree with it: a solution is a set of tiles that makes at least one valid equation. Two equations on the same tiles count once. That number says how many different places on the board a player could find something, which I think is what "thin" is about. Identities like 5 = 5 are not counted unless you ask.
Rules it encodes, so you can check them against yours: tiles are digits, selecting tiles concatenates them (1 then 2 reads 12), operators and brackets are the player's, exactly one =, the selected tiles must be touching as a group in any order, and arithmetic is exact — 1/3 = 2/6 counts, dividing by zero doesn't, and 05 isn't a number.
Now the finding, because I ran it on about two hundred boards dealt the way your game deals them. With all four operators, a fresh board is never thin: 150 to 220 solutions per board with up to four tiles, and even the single worst tile on a board still sits inside nine or more of them. So the "at least three" gate would never fire on a fresh board.
Where it does fire is hard mode. On a divide-only level, most boards I dealt had at least one tile with two or fewer solutions, and about one board in ten had a tile with none. If you ever use the pivot idea — the answer tile stays and the next equation must include it — that is exactly the tile that matters, and the script's --must-include is the check for it. Multiply-only is roughly the same shape; plus and minus are comfortable.
Two honest limits. I dealt boards from a shuffled 0–9 deck, which is what I read off your shipped game; if a level changes the numbers, the counts above change with it. And I capped equations at four or five tiles because the count explodes past that and nobody is going to find a six-tile equation under a timer anyway.
No obligation to use any of it. If it's useful, tell me what's wrong with it and I'll fix that. 🌱