
Unringle is a calm, tactile ring puzzle for Android and iOS. Coloured rings hang interlocked from steel frames and from each other; the player turns each ring until its opening lines up where the rings touch, then slides it free. The game ships with 500 levels in 10 chapters, a daily puzzle and an Endless mode. A puzzle game lives or dies by its levels, so this article explains how we produced 500 of them that are always solvable and get steadily harder.
The rules of Unringle fit in one sentence: two linked rings hold each other until one ring's opening straddles the other's band, and a ring can slide out once it is free of every link and its path is clear of walls. From that rule come many mechanics: D-rings that only turn within a range, sliding tubes that must line up with corridors, rotating gates, flexible locks, triangles and rings that stay locked until another one is released.
Every chapter of 50 levels introduces a new idea on top of the earlier ones, and every tenth level is a boss level. Players earn three stars by solving at or under par, can undo, restart or ask for a hint at any time, and can chase 20 achievements, a daily puzzle shared by every player and an Endless run of random levels.
We built Unringle in Flutter for Android and iOS. Version 1.0 was completed on 26 November 2026, and version 1.1 followed a day later with onboarding, the Daily and Endless modes, achievements and the iOS release. The game plays fully offline, with no ads or accounts, and both store listings declare that no data is collected.
One rules engine for the game and the tools
The puzzle logic (geometry, rules, solver and validator) lives in a domain layer with no Flutter imports, and an automated test enforces that boundary. The same code runs inside the game and inside the command-line tool that generates levels, so a level that the tool proves solvable is solvable in the app by definition.
That separation also made the logic fast to test. Every rule, from when two rings count as linked to when a ring's swept outline hits a wall, is checked by unit tests without starting the app.
Generate, then filter hard
Hand-placing 500 levels of interlocked rings is slow and error-prone, so the levels come from a deterministic generator built on the game's own engine. It produces candidate boards and keeps one only when every check passes. Duplicate layouts are rejected, and because the generator is deterministic, the same version always produces the same files.
- Layout: rings overlap enough to look interlocked, and unlinked pieces never touch
- Openings: each gap is the smallest width that can release its links, plus slack that shrinks across the campaign
- Walls: corridors and gates never touch a ring at any rotation
- Scramble: random starting rotations, with nothing clearable before the first move
- Solver: an optimal solution must exist within the chapter's move range
- Validator: structure and visuals are checked at every reachable rotation, and the stored solution is replayed
A solver that proves every level and sets par
At the heart of the pipeline is a breadth-first solver over the puzzle's discrete states. Rings turn in fixed steps, so the state space is finite, and the solver only considers rotations to steps where something new becomes possible, which keeps the search small. Breadth-first search returns the shortest solution, so par for every level is the true optimum, and the solution is stored with the level.
The same solver powers hints. If the player's board matches a state along the stored solution, the next stored move is an instant optimal hint; otherwise the solver searches from the current state in a background isolate, so the game never freezes. A hint is always a legal move, never a guess.
Measuring difficulty instead of guessing it
Difficulty is a score from 1 to 100 calculated from measurable features of each board: how many rings move, how many links and gates there are, how deep the chain of dependencies goes, how many moves the optimal solution needs, how many options the player has at the start and how tight the move limit is. Weighting those features turns "this one feels hard" into a number that can be sorted and tested.
Each chapter is then ordered as a sawtooth. Levels climb in blocks of ten, each block ends on a boss level taken from further up the ranking, and the next block starts with a breather. Automated tests over the whole catalogue check that chapter averages strictly increase, that block averages never drop and that every chapter ends on its hardest level.
Deterministic geometry and honest rendering
Whether a ring can slide free is a geometry question, and the answer must be the same on every phone. Standard sine and cosine functions can differ in their last bit between Android, iOS and the test machine, so Unringle uses its own pure-arithmetic trigonometry for gameplay decisions. A level solved on one device is solvable, move for move, on every other.
The board is drawn with a custom painter that gives each ring a 3D-inspired look (drop shadow, darker rim and a specular highlight from a top-left light) using exactly the outlines the engine uses for collisions. What the player sees is what the rules evaluate. Each ring also carries a symbol, so colour is never the only cue, and the game offers left-handed controls and a reduce-motion option.
Offline by design
All 500 levels, progress and settings stay on the device; the only network request is a check for a newer version. To move progress to a new phone without an account, the game creates a backup code: the player's progress, compressed and encoded as text, with a checksum that rejects damaged or truncated codes.
“Players forgive a hard puzzle. They never forgive an impossible one.”


