I grew up with ball-piece packing puzzles: a small case, a dozen plastic pieces made of fused balls, and a card showing which pieces start on the board. Kanoodle is the one most people know. When I looked for a good version on iPhone, the closest match by name was rated about 1.4 stars, and most of its reviews complain about ads. So I built my own: Clover Case, a free Kanoodle-style puzzle game for iPhone.
Here are the parts that turned out to be more interesting than I expected.
The board math is unforgiving (in a good way)
The classic board is 11 × 5 = 55 holes. The piece set is twelve shapes:
| Piece size | Count | Balls |
|---|---|---|
| 3 balls | 1 | 3 |
| 4 balls | 3 | 12 |
| 5 balls | 8 | 40 |
| Total | 12 | 55 |
Exactly 55 balls for 55 holes. There's zero slack: if every piece goes in, the board is full. That's why the last piece always either clicks perfectly or doesn't fit at all, and it's also what makes this a nice exact-cover style problem to generate levels for.
Generating levels with a known answer
A level is a board with some pieces already locked in place, like the picture cards in the physical game. The generator works backwards:
- A solver packs the full board with all twelve pieces.
- Pieces are removed from that solution, leaving a puzzle that is guaranteed to be solvable.
- The fewer pieces you're given, the harder it gets.
That gives four difficulty books of 40 levels each, 160 levels in total.
Each level comes from a fixed seed, so "Medium 7" is the same puzzle on every phone, and two friends can compare notes on the same board.
Leaving the rectangle: triangle and hexagon boards
Once the rectangle felt right, I added a triangle case (51 holes) and a hexagon case (53 holes). The hexagon is by far the nastiest: six corners and no long straight wall to lean on, which breaks the "fill the edges first" habit most players rely on.
A daily puzzle for everyone
Every day there's one empty-board puzzle that's identical worldwide, with a leaderboard. It rolls over at midnight UTC.
Stack: Expo + Three.js
The board and pieces are real 3D, rendered with Three.js inside an Expo (React Native) app. The 3D wasn't the hard part, though. Most of the time went into feel:
- how a piece lifts when you grab it,
- rotating and flipping with one finger,
- the snap when it lands in the holes.
It all sits inside a small pixel-art travel case with a clover on the lid, which is where the name comes from.
Monetization without ruining it
Since the competition lost players to ads, I set hard caps: no ad when the app opens, at most one full-screen ad every 3 levels and never more than one every 3 minutes, plus a small banner. A one-time purchase removes ads. It works offline and needs no account.
Try it / tell me what breaks
- App Store: https://apps.apple.com/app/id6792343237
- If you're comparing apps: Kanoodle-style games on the App Store, compared
- Longer devlog on the game site: How I built a Kanoodle-style ball puzzle game
Questions about the level generator or the Three.js-in-Expo setup are welcome in the comments.
AI disclosure: the game's art is AI-generated, and much of the code was written with help from an AI coding assistant (Claude). Kanoodle is a registered trademark of Educational Insights; Clover Case is independent and not affiliated with it.