Companion Baduk

On-device LLM move explanations

Companion Baduk

Commercial Go-learning desktop app on Steam (Early Access, 160+ downloads across itch.io and Steam) built around an explainable AI engine: heuristic evaluation, Monte Carlo search, difficulty scaling, and human-readable move explanations, plus a bundled language model that works with neural network engines to explain Go moves.

120+
itch.io downloads
40+
Steam owners
160+
total downloads

Figures as of Dec 2026.

Project Visuals & Screenshots

1 of 9
A 5×5 match in progress with the last move marked and captured stones in a bowl

A 5×5 match in progress with the last move marked and captured stones in a bowl

Overview

Companion Baduk is a standalone desktop application and instructional platform designed to make learning the ancient game of Go (Baduk) intuitive, rewarding, and transparent. It combines an accessible Electron interface built with HTML5 Canvas, CSS3, and Vanilla JavaScript with a dedicated Python AI engine capable of evaluating board positions and explaining tactical ideas in plain English.

Key Features & Engineering Highlights

  • ✦Shipped on Steam as a paid Early Access title (23 Oct 2026); 120+ itch.io downloads and 40+ Steam owners as of Dec 2026, with a public community feedback roadmap
  • ✦Bundled language model used with neural network engines to explain Go moves, fully offline; generative AI use disclosed on the Steam store page
  • ✦Explainable AI engine with heuristic evaluation, Monte Carlo search, and human-readable move reasoning
  • ✦Adaptive AI sparring partners calibrated across skill levels from complete beginner (40 kyu) to master (9 dan)
  • ✦Four core game variations: Normal even-game play, Chinese Opening, Handicap stones, and Korean Sunjang Baduk
  • ✦Curated Tsumego puzzle library with tactical hints, move explanations, and immediate board state feedback
  • ✦Zero-microtransaction progression system with unlockable board themes, stone skins, and historic pro match replays
  • ✦Accessible responsive desktop UI with keyboard zoom controls and detailed player analytics
⚠️

The Problem

Go is notoriously difficult for novices: the state space exceeds the number of atoms in the universe, and modern superhuman neural networks (KataGo, Leela Zero) act as inscrutable black boxes that provide win percentages without actionable instruction. Beginners need opponents that scale naturally, make human-like mistakes, and explain why a move succeeds or fails.

💡

The Solution

Engineered an explainable Go engine that couples state-space heuristic evaluation with Monte Carlo search. The engine analyzes liberty counts, eye shapes, ladder sequences, and influence gradients, mapping tactical board states to human-readable explanations. Packaged within a desktop app featuring tutorials, Tsumego puzzles, and belt-based progression.

Technical Architecture

System Design
┌────────────────────────────────────────────────────────┐
│          Electron / Vanilla HTML5 & Canvas UI          │
│     (Interactive Goban, Tsumego Puzzles, Tutorials)    │
└──────────────────────────┬─────────────────────────────┘
                           │ IPC / Child Process
┌──────────────────────────▼─────────────────────────────┐
│                    Node.js Layer                       │
│    (Process Orchestration, Session State, File I/O)    │
└──────────────────────────┬─────────────────────────────┘
                           │ Standard I/O / JSON Streams
┌──────────────────────────▼─────────────────────────────┐
│                  Python AI Engine                      │
│    (Heuristic Evaluator, Monte Carlo Search, Move Expl)│
└──────────────────────────┬─────────────────────────────┘
                           │
┌──────────────────────────▼─────────────────────────────┐
│               Game Logic / Search / Data               │
│      (Liberty Counting, Territory Scoring, SGF Tree)   │
└──────────────────────────┬─────────────────────────────┘
                           │ Local Persistence
┌──────────────────────────▼─────────────────────────────┐
│               SQLite / Supporting Data                 │
│      (Player Belt Ranks, Puzzles, Game Archives)       │
└────────────────────────────────────────────────────────┘

The application separates concerns cleanly: the presentation layer in Electron uses HTML5 Canvas, CSS3, and Vanilla JavaScript to handle high-DPI board rendering, move animations, and audio. The Node.js desktop layer orchestrates engine child processes, manages user session files, and relays commands over structured JSON streams to the Python AI core. The Python engine executes heuristic evaluation, Monte Carlo search rollouts, and rule adjudication, persisting player stats and unlockables in an embedded SQLite database.

Key Engineering Decisions

Explainable Heuristics over Pure Neural Networks

Rather than deploying heavy, uninterpretable deep neural weights, the AI engine uses modular heuristics (liberty pressure, stone connection, eye formation, corner dominance) that directly translate into clear tactical explanations for learners.

Local Child Process Architecture

Communicating with the Python AI subprocess over standard I/O with JSON streaming enabled fast response times, zero cloud API costs, and full offline functionality on low-power devices like the Microsoft Surface Pro 8.

On-Device Language Model for Move Explanations

The app ships with a local language model, used alongside neural network engines to explain Go moves in plain language. The bundled model is refreshed regularly as better small models release, keeping inference offline and free of cloud API costs. Generative AI use is disclosed on the Steam store page.

Belt-Based Gamified Progression

Implemented a structured belt system from 40 kyu white belt to 9 dan black belt with zero microtransactions, creating a clear sense of mastery through sparring matches, tutorial completion, and Tsumego mastery.

Challenges & Solutions

Real-time Natural Language Move Translation

Converting complex geometric shapes, cutting points, and ladder conditions into concise, helpful sentences required creating a rule-based tactical vocabulary engine that prioritizes the most urgent board feature.

Performance on Lightweight Hardware

Optimized the Monte Carlo search depth and bitboard-style liberty calculations to guarantee sub-second move generation on integrated laptop processors without draining battery.

Results & Impact

  • ✓Shipped as a commercial Early Access title on Steam (23 Oct 2026); 160+ downloads across itch.io and Steam as of Dec 2026
  • ✓Custom explainable AI engine delivering real-time, human-readable move feedback and tactical coaching
  • ✓On-device language model working with neural network engines to explain moves, with no cloud API dependency
  • ✓Incorporated 4 game modes, comprehensive Tsumego puzzle suite, and multi-resolution zoom controls

Limitations & Next Steps

  • →Early Access: core play is stable, but lessons, puzzles, and analysis tools are still expanding against a published ~1-year roadmap.
  • →The heuristic engine is intentionally weaker than KataGo-class neural engines; it trades raw strength for explainability.
  • →Move explanations depend on the bundled language model and neural network engines; explanation quality varies with the current model version.
  • →Windows-only at present, and first-run model setup takes a few minutes on low-power devices.

Related Projects

Other work that shares technologies or themes with Companion Baduk.