New
Apps 6,419Makers 6,403This week 7
Promote your app−30%
Pogofish screenshot 1
5views in
the last 30 days

Pogofish

Training an AI to play a forgotten board game, and measuring what it is really worth

Built with Claude Code

by w2ur · added Oct 29, 2026
no ratings0 comments

English · Français

Pogofish

I taught a machine a game nobody plays any more. The first time, I took its word for it. The second time, I measured.

Status: maintained · public · play it in the browser

Latest CLI release release-cli Story online License

The Pogo board in a browser: the human plays White, moves one piece from a stack of two, the status line reads 'The net is thinking', then the AI answers by stacking its red pieces.

Why

The question I wanted to ask was simple, almost naive: does a machine that learns alone, by playing against itself, really learn anything, and how would I know? In the spring I had published a long article on this project; everything seemed to work, which should have set off an alarm. So for the second round I wrote down before training what would count as success, then forbade myself from touching it.

What it is

Pogo is played on nine squares: you move one, two or three pieces from the top of a stack, and a stack belongs to whoever's piece is on top. Pogofish is an AlphaZero written in Rust that learns it alone, an arena that measures it over colour-swapped random openings with 95 % confidence intervals, and a terminal game that plays the trained net with pure-Rust inference.

Against a greedy player, the round-2 net scores between 0.855 and 0.887 over 400 games, depending on the training seed (three seeds). Of the four criteria fixed in advance, two are met, one is not met as pre-registered, and the fourth (ten games played by hand) is pending: docs/experiments/v2-results.md.

The first round's evaluation did not hold. What went wrong, and which results it invalidates, is in docs/experiments/v1-verdict.md.

Play

  • In the browser: the board is at the end of the story, in English and in French.

  • In a terminal (macOS): download the latest cli-v* release for your chip. The binary is unsigned.

    # Apple silicon; swap in x86_64-apple-darwin on Intel
    gh release download -R w2ur/pogofish -p '*aarch64-apple-darwin*'
    shasum -a 256 -c pogofish-*-aarch64-apple-darwin.tar.gz.sha256   # must print: OK
    tar xzf pogofish-*-aarch64-apple-darwin.tar.gz
    ./pogofish-*-aarch64-apple-darwin/pogofish --help
    

    A browser download is quarantined by macOS and Gatekeeper refuses the unsigned binary; clear the flag once with xattr -d com.apple.quarantine pogofish. Downloads through gh or curl are not quarantined.

Run locally

Needs a Rust toolchain (rust-toolchain.toml) and Node for the web app. No environment variables.

cargo test --workspace                                              # engine, inference, search, training
cargo run --release -p pogofish-cli -- --colour red --level normal  # the terminal game, from source
cd app && npm install && npx vitest run && npm run build:board      # the board the hub embeds → app/dist-board/

Or install the terminal game without cloning (self-contained binary, the net is embedded, no libtorch): cargo install --git https://github.com/w2ur/pogofish pogofish-cli.

Deploy

The board is served by the hub, william.revah.paris, which copies app/dist-board/ into its own public/pogofish/. The terminal game ships by pushing a cli-vX.Y.Z tag, which builds and attaches the binaries to a GitHub release. The round-1 article's subdomain, pogofish.revah.paris, is retired and redirects to the story.

Documentation

  • Development: the workspace crates, the web app and the board build, every training, measurement and export command, the round-1 article, deployment detail.
  • Rules: each rule, the engine line that implements it, and the test that pins it.
  • Round-2 results and round-1 verdict.
  • The story: English · French.

License

MIT, see LICENSE.


Made with care by William.

Description taken from the repository README.

Ratings

–
0 ratings
5 0
4 0
3 0
2 0
1 0

Rate this app

Sign in to rate

Comments 0

Sign in to comment

No comments yet.

Related apps

#board-game