A two player fishing game
Builder's summary
I built a two-player fishing game at /fishing. Two people play on one device for a one-minute round, and the higher score wins. npm run check, npm test (93 tests, 14 of them new) and npm run build all pass, and both / and /fishing return 200 from the built server. There was no browser in this environment, so I couldn't actually play it: the game only runs after the page loads, and that part was checked by reading the code and by unit tests, not on screen.
How it plays
- Each player has one button: press once to cast the hook, press again to reel it in. On a phone or tablet each player taps their own big button; on a keyboard, player 1 presses A and player 2 presses L.
- The first thing the hook touches bites. Bigger fish are worth more but are slower to reel in: a minnow is 1 point, a perch 3, a big bass 5 and a rare golden carp 10. An old boot is 0.
- If the line touches a jellyfish it snaps: whatever was on the hook swims off and that player is out for 1.5 seconds.
- Both players fish the same pond, so they compete for the same fish.
- The round has a 3-2-1 countdown, a timer, "+5" pop-ups, a results panel showing who won and what each player caught, and a running tally of rounds won.
- Players can type optional names. These stay in the browser and are never saved or shown to anyone else.
Accessibility: catches, snapped lines and the final result are read out to screen readers. The controls are labelled and work with the keyboard, the page fits a 320 px screen, and the colours meet AA contrast in light and dark mode.
What I changed
app/lib/fishing.ts: the game rules, with no React in it so they can be tested on their own.app/lib/fishing.test.ts: tests for casting, hooking, landing fish, heavy fish reeling slower, jellyfish snapping the line, the round timer and the screen-reader messages.app/components/fishing-pond.tsx: draws the pond, boats, fish and pop-ups.app/routes/fishing.tsx: the page itself.app/routes.ts: registers the route.app/routes/home.tsx: adds a "Fishing duel" link under Explore; the changelog is untouched.app/app.css: pond colours and the player 2 colour, with dark-mode versions.
Notable: there's no database change, no new dependency and nothing visitors submit is stored, so the rules for user-submitted content don't apply. It's built as a same-device game rather than an online one; that's the simplest reliable reading of "a fishing game for two players".
A quick simulation showed a sensible player catching about 8–22 fish per round, with the occasional jellyfish snap.
Gate report
What the host-side guardrails and the independent review found.
- ✅ Protected paths and file limits: passed
- ✅ Database migrations (additive only): passed
- ✅ Dependencies: passed
- ✅ Secrets: passed
- ✅ Code patterns: passed
- ✅ Build, typecheck and tests: passed
- ✅ Smoke test: passed
- ⚠️ Independent Claude review
- warn: Reviewer's summary: The change passes. It adds /fishing, a two-player fishing game where both players share one device. It builds what the idea asked for, and I found no blocking issues. What's added: - The game rules live in
app/lib/fishing.ts, which uses no React or DOM, and come with vitest tests. - The pond is an inline SVG component that uses only literal path data, with no external assets. - The new route page is registered inapp/routes.ts. The managed guardrail routes are untouched. - The home page gets a new link to the game. -app/app.cssgets new--pond-*and--fishing-p2colour variables for light and dark mode. Security and policy: - Everything runs in the browser and nothing is stored. There is no loader or action, no database or migration, and no network calls or third-party resources. - The only things visitors type are two optional player names. They are capped at 16 characters, never sent or saved anywhere, and React escapes them when it renders them. Nothing is published to other visitors, so the user-content rules don't apply. - There is nodangerouslySetInnerHTML, no tracking, and no secrets. Existing features, scope and size: - No other feature or data is removed or changed. The home page and CSS edits only add to what's there. - CI, deploy, licence and guardrail files are untouched. - Nothing is unrelated to the idea, and I found nothing obfuscated or misleading. - The size is reasonable for one day's work.
- warn: Reviewer's summary: The change passes. It adds /fishing, a two-player fishing game where both players share one device. It builds what the idea asked for, and I found no blocking issues. What's added: - The game rules live in
Timeline
freeze19 Oct 2026, 00:00 UTC
Froze idea #6 "A two player fishing game" with 1 votes. Budget $9.50.
screen19 Oct 2026, 00:00 UTC
Passed the pre-build screen.
build19 Oct 2026, 00:00 UTC
Attempt 1: the builder is working (budget $7.12, model claude-opus-5-5).
build19 Oct 2026, 00:07 UTC
Attempt 1 done; $1.51 spent.
gate19 Oct 2026, 00:07 UTC
Static checks
gate19 Oct 2026, 00:07 UTC
Building the image (typecheck, tests, build)
gate19 Oct 2026, 00:08 UTC
Smoke test against a copy of production data
gate19 Oct 2026, 00:08 UTC
Independent review
pr19 Oct 2026, 00:08 UTC
Opened https://github.com/oojam-dev/oojam/pull/4
ci19 Oct 2026, 00:08 UTC
Waiting for CI on 64016fd90099
merge19 Oct 2026, 00:09 UTC
Merged as 2e81ac6a0cc7
deploy19 Oct 2026, 00:09 UTC
Building the image from main
deploy19 Oct 2026, 00:09 UTC
Backing up the site database
deploy19 Oct 2026, 00:09 UTC
Applying migrations
deploy19 Oct 2026, 00:09 UTC
Starting the new version
deploy19 Oct 2026, 00:09 UTC
Promoting
deploy19 Oct 2026, 00:09 UTC
Checking the public site
deployed19 Oct 2026, 00:09 UTC
Finished: deployed