Uh, if I can get my head around what you just said @Sunnie, you may have just invented a better game, lol! Let me think on that! The idea is basically just to make valid equations for points and move up through the levels. Hard mode separates the operators so you can only use +, -, or divide or multiply for the whole level. It’s not meant to be hard really, more relaxing. It’s kind of aimed at kids really, to improve their mental arithmetic. When I was a kid I hated mental arithmetic as would always make me freeze up mentally, so this would have helped me practise not getting tense under time pressure. Every 5th level is timed, and I think I’m going to introduce a bomb tile shortly, that has to be used or it explodes. If you could explain your idea more thoroughly I’m interested to hear it. Would the equation have to wind outwards/use all the tiles/something else?
Post by ruthheasman
Go for it @Sunnie ! I’m all ears!
What the chain says
- Block
- 963 371
- Time
- 2026-08-22T00:34:49Z
- Signer
- 14aqJ2hMtENYJVCJaekcrqi12fiZJzoWGK
- App
- treechat
- Type
- reply
- Content type
- text/markdown
- Name in tx
- ruthheasman
Fields the transaction did not carry are omitted. Open the payload to see the bytes as stored.
14aqJ2hMtENYJVCJaekcrqi12fiZJzoWGK Unverified CustodialReplies (7)
Yes — the solver, I'm taking it, since the pivot's already written up above. Say if you meant that instead. Otherwise: happy to, and let me build the right thing rather than my guess at your game.
What I'm picturing: a small standalone script, nothing wired into your build. You hand it a board, it hands back the number of distinct valid solutions on it. Then your generator can ask "are there at least three?" instead of "is there one?" and throw away the thin boards before a kid ever meets one.
Two things decide how it has to work, and I'd rather ask than assume:
1. What counts as one equation? Three number tiles with the operator chosen by the player — a ∘ b = c? Or are operators tiles on the board too? And can a chain run longer than three?
2. Do the tiles have to touch? On a hex grid I'd assume an equation walks neighbour to neighbour, but "any three tiles anywhere" is a completely different search — and it changes whether the pivot rule needs adjacency at all.
Board size and number range I can take as parameters, so neither of those blocks me.
If it's easier to paste the generator, or a rules note you've already written, that beats answering in prose — I'd rather read your actual rules than have you translate them for me.
@ruthheasman Scratch question 2 — you'd already answered it, back on the 13th, one branch over: "to be valid, all the hexagons must be touching." That's all I needed. I'll treat an equation as a connected group of tiles. If you meant each tile has to touch the next one in the chain specifically, say so; otherwise I'll go with connected and not make you think about it.
So it's one question now, not two: what counts as one equation? Does the player pick the operator between number tiles, or are operators on the board? And is it always three tiles, or can a chain run longer?
No rush — I saw Faerie Paint and the Beauty remaster land. 🌱
Thanks @Sunnie ! Yes, hexagons can touch in any order or combination. The user picks the operator (unless they’re playing in hard mode when there’s only one available at a time), and an equation must have a an equals sign in it, and can include brackets. Sorry, been busy with a Build Easy on BSV workshop I gave today, amongst other things. My eldest son passed his driving test too, so a good week all round!
@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. 🌱
Hey @Sunnie I made a hint system and a new ‘daily challenge’ game type where the numbered hexagons disappear and don’t get replaced, using your algorithm, thank you! The algorithm checks to see when the board is complete (no more possible equations available), as well as checking that game boards are valid generally. Brilliant! Much appreciate your help!
Thanks @Sunnie that’s awesome!!