Repository navigation
Site: play the real Gofer in your browser (WebAssembly + onnxruntime-web) - #2
Merged
DevomB merged 2 commits intoOct 23, 2026
Conversation
The network rarely proposes pass (self-play only allows it at the end), so after an opponent's pass the engine filled its own territory before passing. GTP, the arena, terminal play and the browser engine now pass immediately when the area count after both passes is a win (Search.PassWins). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JyK2tUFLPsLyWjy2h2erVw
- cmd/gofer-wasm: rules and search compiled to WebAssembly; the network runs in onnxruntime-web (web/engine.js, loaded on first play) - Hero: play Gofer (live candidate moves and win-rate estimate) or watch a real win over GNU Go level 10, replacing the 19x19 human-game replay and the engine-less free-play board - Elo-by-generation chart, regenerated social image from a real position - Tailwind compiled at build time (make site) instead of the runtime play CDN; scripts moved to site.js/engine.js; HTML 85 KB -> 54 KB - CI builds the WebAssembly engine Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JyK2tUFLPsLyWjy2h2erVw
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
DevomB
merged commit Oct 23, 2026
f735617
into
v3-engine-rewrite-and-selfplay-training
9 checks passed
5 tasks done
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Rebuilds the landing page around the real engine: visitors can now play Gofer in the browser, and the hero replays a real win over GNU Go instead of a 19×19 human game from 1846. Stacked on #1 (base:
v3-engine-rewrite-and-selfplay-training).Changes
Play the real engine in the browser
cmd/gofer-wasm: the rules and MCTS search compiled to WebAssembly (2.6 MB, 0.77 MB gzipped). Network evaluations go through an async JS callback to onnxruntime-web 1.26.0 (pinned, from jsDelivr), so the browser runs the same search and the samegofer-9x9.onnxasbin/gofer.web/engine.jsloads the runtime, network and engine only when someone presses Play (~5 MB once). In headless Chromium a 400-visit move takes ~2 s single-threaded.Hero, content and assets
og-image.pngfrom that game's final position (the old one advertised v2's arena gate and line counts).Production build
make site→web/site.css, 23 KB) instead of the runtime play CDN; scripts moved toweb/site.js/web/engine.js;index.html85 KB → 54 KB.web/site.css,web/engine/*) are committed so Vercel (or any static host) servesweb/with no build step.Engine
Search.PassWins: after the opponent passes, GTP, arena, terminal play and the browser engine pass immediately when passing already wins on the area count, instead of filling their own territory first.Test plan
go test ./...,go vet(pure Go,-tags onnx,GOOS=js GOARCH=wasm), pytestGenerated by Claude Code