You pull back, you let go, and a smart contract on gno.land
plays the shot with its own physics.
Every score is the chain's own replay of your shots: nobody can forge one, anyone can check it.
- Five cups, 90 holes, from the Garden to the Crystal Mines: windmills, trams, a volcano, timed pieces.
- Weather that turns every five minutes, the same for everyone.
- Ghost duels: race anyone's best round, stroke for stroke. The chain kept it, so it can't be faked.
- Boards for every hole and the whole course, and a link that dares a friend to beat you.
- The Builder: draw a hole, hole it in every weather, publish it under your name.
The client never sends "I scored 2". It sends what you decided (an angle, a
power, the moment you let go), and the golf realm rolls the ball with its
own physics. Every score is the chain's replay of your shots, so anyone can
check it. Playing is free; keeping a score is one transaction, signed with
Adena or gnokey.
| Part | Built with |
|---|---|
| On chain | Gno realms and packages: the physics, the hole format, the rules, the records, the gnome collection |
| In the browser | three.js for the 3D (cel shading, no textures), plain TypeScript for the engine, React 19 for the interface on top |
| The site | Next.js 15, a static export: plain files, no server, hosted on Netlify |
| The aim line | the realm's own Go code built with TinyGo to wasm, checked against the chain byte for byte |
| Wallets | Adena, or a gnokey command to paste |
| Checks | Gno tests with gas and storage goldens, node:test, strict TypeScript, ESLint, goldens for every gnome and every scene |
You need Go, Node 22.15 or later, and a gnolang/gno checkout next to this repo.
Build the onyx toolchain once (onyx runs mainnet's code):
t=${GNO_TOOLCHAIN:-${XDG_CACHE_HOME:-$HOME/.cache}/gno-toolchains/onyx}
git -C ../gno worktree add ../gno-onyx chain/onyx
(cd ../gno-onyx/gnovm && go build -o $t/gno ./cmd/gno)
(cd ../gno-onyx/gno.land && go build -o $t/gnokey ./cmd/gnokey)
(cd ../gno-onyx/contribs/gnodev && go build -o $t/gnodev .)Then play the whole game on your machine:
cd web && npm ci && cd ..
scripts/try-local.sh # a local chain with the 90 holes, two wallets, the siteIt prints the link to open and the wallets to import in Adena.
cd web
npm run dev # the game on http://localhost:3000, against a local gnodev
npm run build # the static site in web/out
npm test # the unit tests
cd ..
scripts/check.sh # everything that must pass before a commit
SKIP_GNO=1 scripts/check.sh # the client alone, as the CI runs itgno.land/p/gnogolf/ the physics and the hole format, reusable by any Gno game
gno.land/r/gnogolf/ the realms: golf (the rules), store (the records), gnomes, and the 90 holes
web/lib/ the game: engine, 3D scene, Builder, chain client; no React
web/components/ the interface
data/ the 90 holes as published, and the gnome catalogue
scripts/ checks, deploys, the local playground, end-to-end runs
Each of these folders has a README that says where to start.
- The golf realm on gnoweb: the course, the boards and the source, live on chain.
- docs/development.md: running it by hand, the dev mode, the checks, writing a hole, deploying the site, who can change what.
- docs/try-local.md: the whole game on your machine, wallets and shop included.
- CLIENT.md: how to write your own client.
- docs/golf.md, physics, course: the realm's API, the physics, the hole format.
- docs/pitch.md: the game in one page, to share.
- gno.land and its docs: the chain Gnogolf runs on.
- Report a bug or an idea.