The gap
Mini-golf holes are easy to draw and hard to make fair: a gate timing or a bumper angle can make par impossible, and testing every hole by hand after a physics change is slow.
Game templates
The complete TypeScript and three.js source of Puttlewick, a cosy mini-golf game: 18 holes as ASCII maps and a daily hole. A search bot sinks every hole at or under par.
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
Mini-golf holes are easy to draw and hard to make fair: a gate timing or a bumper angle can make par impossible, and testing every hole by hand after a physics change is slow.
What it is
A finished, tested mini-golf game whose holes are text maps and whose pars a search bot proves with the real physics.
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, save key, ball physics (speed, friction, sand, cup, bounces), courses and holes as text maps, three themes with scenery, ball colours and sound.
A search bot plays every hole and 30 daily holes with the real physics on each npm test and sinks each one at or under par.
Two nine-hole courses and a daily hole, windmills, bumpers, humps, gates, sand and ponds, drag-to-putt, a scorecard and saved bests.
35 unit tests and Playwright browser runs, a size budget, an upload zip for itch.io or any static host, and a guide to building holes and tuning the ball.
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.