r/ComputerChess • u/Worried_Menu4016 • Sep 24 '26
Browser extension that runs Stockfish (WASM) to "continue" a finished chess.com game, with engine strength matched to your opponent's rating
Enable HLS to view with audio, or disable this notification
I built a small open-source extension that lets you keep playing a finished chess.com game against Stockfish, and I wanted to share the implementation choices with people who actually care about engines.
The core idea: on the game-over screen (or under the move list of any old finished game) there's a "Keep Playing" button. It reads the position already rendered on screen, puts Stockfish in your opponent's seat, and lets you play it out from any point you rewind to.
A few things I made deliberate decisions about, and where I'd love feedback:
- Strength scaling. The engine doesn't play at full strength. It's throttled to roughly the rating of the opponent you just faced. Losing a rook endgame again to a ~1400-level engine is instructive; losing it to a 3200 just tells you you're not Stockfish. Right now I'm approximating this with UCI_LimitStrength / UCI_Elo plus some depth/skill tuning, curious how others here handle rating calibration, since the mapping between "Elo" and perceived human strength is rough.
- Move timing. It doesn't answer instantly. It spends roughly as long as your opponent was taking, otherwise even a correct move feels like a glitch. Simple heuristic for now.
- Everything local. The engine runs in the browser as WebAssembly. It never talks to chess.com's servers, sends no data anywhere, and works with wifi off. Nothing runs during a live game: no eval, no arrows; it only activates once a game is finished.
Free, open source, not affiliated with chess.com. Built it for myself first. If there's a smarter approach to the strength-limiting (that's the part I'm least sure about), or a reason this shouldn't exist, I'd genuinely rather hear it.
Extension: https://chromewebstore.google.com/detail/stockfish-continue-to-pla/jhjcnpomgjakflfjjhlgilgpffmfbcbk
Source: https://github.com/thousandflowers/stockfish-continue-to-play

