The gap
Random solitaire deals are often unwinnable, which makes stars and daily challenges feel like luck; checking deals and building a polished card table by hand takes weeks.
Game templates
The complete TypeScript and three.js source of Gloamridge, a peak solitaire at dusk: play cards one rank up or down and build streaks. An exact solver proves every deal clearable.
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
Random solitaire deals are often unwinnable, which makes stars and daily challenges feel like luck; checking deals and building a polished card table by hand takes weeks.
What it is
A finished, tested solitaire whose every deal is proven clearable by an exact solver, with its look and deals in one config file.
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, colours, card faces and suits, ridge layouts, deal names, the difficulty window, scoring, stars, hints and sound.
A layered solver with a node cap plays every campaign deal and 60 daily deals through, reports whether the search was complete and replays each solution through the rules.
20 deals and a daily deal, streaks and beacons, stars for the stock you keep, unlimited undo, three hints per deal, auto-finish, saves and layouts for desktop and phones.
25 unit tests and Playwright browser runs, a size budget, an upload zip for itch.io or any static host, and a guide with card art, new layouts and rule variants.
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.