jsnwng.dev

fishbowl

loading…

who's fishing

2 minutes to catch what you can. click to cast, click or space to reel. a splash scares fish, so cast where they're going. reel during the nibble or the fish takes the bait. bait goes stale, so recast now and then.

What's going on

the question: how could a browser game hand its decisions to a model running on the player's own machine, and what would that cost? the fisherman is the test.

anything that fishes is a hunter. every tick it sees the bowl (where the fish are, what they're worth, the hook, the bait) and answers cast, reel or wait. right now there's a hand-written heuristic, a small neural network trained to copy it, you, and two baselines: one that casts in the same spot every time and waits, and one that acts at random.

the rules are there so waiting around doesn't pay. splashes scare fish, a nibble only lasts about 0.4s, and bait goes stale. fish also change direction and depth now and then, so leading one is a good guess, not a sure thing. over 20 seeds the heuristic averages about 14 catches, the model about 14, cast and wait about 7, random about 1.

the game itself is headless and seeded. the same seed and the same moves always give the same run, so every hunter faces the same fish. next up: language models running in the browser, scored on catches and on what they cost per frame.