Hatch Scratcher
The first game built for the CryptoZoo arcade.
retired Retired: the arcade and its deployment are gone; source on GitHub checked 2026-10-13 [1]
A scratch-card style wager game: pick animals, set a wager per square, begin the round and reveal the board, with balances and rollovers settled in $ZOO.
what it does
-
The server generates each board from seedrandom, seeded with the round's UUID plus a server secret, so any round can be regenerated from its id. [2]
-
A square pays 0.95 divided by its hit probability, times the wager: an exact animal is 1 in 16; the five rarity tiers are 25/25/25/12.5/12.5%. [2]
-
Payout math runs on decimal.js rather than floats. [2]
-
Wallet sessions persist in MongoDB through express-session and connect-mongo, and CORS is pinned to the game's own origin. [4]
-
A simulation script plays rounds through the same game module to check payouts. [5]
-
The client is seven PixiJS scenes (splash, connect, loading, wager, scratcher, results, rollover) driven by the same scene manager as the arcade game template. [6]
Languages, as GitHub reports them
by bytes [9]- JavaScript 69%
- PLSQL 30.1% not SQL: GitHub classifies TexturePacker's .tps sprite-sheet files as PL/SQL
- HTML 0.4%
- CSS 0.4%
Every marked line above points at one of these. Public repositories, registries and screenshots only; nothing is inferred past what they show.
- [1] spencermcw/hatch-scratcher on GitHub github.com 2026-10-13
- [2] server/hatchscratcher/game.js github.com 2026-10-13
- [3] server/hatchscratcher/animals.js github.com 2026-10-13
- [4] server/index.js github.com 2026-10-13
- [5] server/hatchscratcher/testing/sim.js github.com 2026-10-13
- [6] game/scripts/scenes github.com 2026-10-13
- [7] game/package.json github.com 2026-10-13
- [8] server/package.json github.com 2026-10-13
- [9] GitHub languages API api.github.com 2026-10-13
- [10] spencermcw/cz-arcade-game-template github.com 2026-10-13
- [11] BlockOpsDev/CryptoZoo, pull requests by spencermcw github.com 2026-10-13

