100% in your browserWebGPU inference19 checkpoints508M learner steps

A snake bot that taught itself to hunt.Play against it 100% offline, using your WebGPU.

One night of self-play reinforcement learning, from an untrained network to a bot that hunts, feeds and dodges. The training simulator, its observation encoder and every saved checkpoint of the run are ported to the browser and run on your GPU. No server, nothing leaves this tab.

HOW IT WORKS

  • Runs in your tab. The whole game, 60 updates a second, runs on this page. There is no game server and nothing is sent anywhere.
  • The real trained bot. The browser game reproduces the simulator the bots learned in, checked tick by tick, so you play the trained network and not an approximation of it.
  • A tiny brain. Each bot is a 33k-parameter neural network, run on your GPU through WebGPU.
  • Human limits. A bot sees only what is near its own head, decides 15 times a second, and its moves land 40 ms late, like a normal player's ping.

Pick your opponent

Every point is a checkpoint the league promoted during the run overnight-5-10-fan. Early ones barely steer; the later ones cut you off.

The tournament

After the run, every checkpoint played every other one and four fixed reference bots, in shared rooms and one on one. One Elo is fitted to all the games of each track. Shared rooms reward outlasting the others; duels reward the kill.

Shared rooms · 40 rooms per pair · 40 ms ping
#CheckpointStepsElo± SE
1508M508M242022
2468M468M229321
3453M453M228221
4394M394M223220
5438M438M221718
6291M291M218518
7247M247M211418
8230M230M206218
9232M232M205018
10217M217M203219
11141M141M200719
12126M126M188520
13112M112M183421
1489M89M173520
15c-143m-final reference—158921
1672M72M155621
1758M58M145321
18c-50m-best reference—132722
1943M43M125523
20discrete-40m-peak reference—116923
2128M28M106925
22discrete-132m-passive reference—100027
230M0M92629
One on one · 40 duels per pair · 40 ms ping
#CheckpointStepsElo± SE
1508M508M148916
2438M438M136414
3453M453M136214
4291M291M135614
5468M468M134513
6394M394M133713
7230M230M132913
8247M247M132813
9232M232M132613
10217M217M128313
11141M141M126213
1289M89M125313
13112M112M125113
14126M126M123713
15c-143m-final reference—117213
16discrete-40m-peak reference—111313
1772M72M109614
18c-50m-best reference—103814
1958M58M103214
20discrete-132m-passive reference—100015
2128M28M98915
2243M43M95716
230M0M77021

Training

Ego-centric PPO, trained purely by self-play. Each snake sees the world only from its own head. No human games and no scripted teachers: what it knows about hunting, feeding and dodging it found by playing copies of itself.

A fair fight

The bots are “lobotomized” on purpose. Every command lands 40 ms late, the ping a normal player has, and they pick a move only 15 times a second from what is near their own head. No reading your inputs, no superhuman reflexes.

This page

Next.js static export, shadcn/ui, recharts, onnxruntime-web. The room, physics, observation encoder and policy live in a web worker; the page receives the scene 30 times a second and sends your heading back every 50 ms.