The gap
Match-3 levels need fair move limits, and a rules change reshuffles every board; tuning dozens of levels by playing them is slow and unreliable.
Game templates
The complete TypeScript and three.js source of Swaybloom, a cozy match-3 where the breeze follows your swap. A bot proves every level inside its move limit.
Coming soon
Not published on its store yet, so there is no buy or download link. PN Scripts does not take payment for it here.
The gap
Match-3 levels need fair move limits, and a rules change reshuffles every board; tuning dozens of levels by playing them is slow and unreliable.
What it is
A finished, tested match-3 with a directional twist whose every level a bot proves, with levels as strings in one config file and a calibration tool.
How you use it
Unzip, run npm ci and npm run dev, then edit src/game.config.ts; npm test checks the game again in seconds.
Source code of a real, playable game to reskin and learn from, with its proofs built into the tests.
Use it when
Built for
Title, logo, six tile kinds (colour and petal shape), colours, scoring, star thresholds and 30 levels as plain strings.
A greedy bot that cannot see the refills wins every level and 30 daily levels inside the move limit on each npm test, and a random player usually fails; npm run calibrate suggests limits for new levels.
The breeze twist, goals for blossoms, moss and ladybirds, gusts, bursts and blooms, 30 levels and a daily garden, stars, no lives or timers.
29 unit tests and Playwright browser runs, a size budget, an upload zip for itch.io or any static host, and a guide to new levels, tiles, specials and objectives.
1 of 3
| Platform or runtime | Supported versions | Tested up to |
|---|---|---|
| Node.js | 22.12 or newer | Not stated |
The template is finished and tested. It is not on sale yet; this page will say where to get it when it is.
Coming soon
Not published on its store yet, so there is no buy or download link. PN Scripts does not take payment for it here.