← All work
AI · Reinforcement learning

Slime-Go

Go for four players, played by agents that teach themselves through self-play and plan inside a learned model of the board instead of the board itself.

2026

Overview

Slime-Go is a territory game in the family of Go, opened up to two, three or four players, where alliances and leader pressure replace a clean win or loss. It doubles as a testbed: you can watch four AI agents play, take one seat against three networks, or play other people over a live connection.

A dark dashboard with a wooden Go board holding black, white, red and blue stones in four regions, player stat cards on the left and an AI analysis panel listing recent moves on the right.
Four neural agents playing one 19x19 board in self play, with per-move engine analysis on the right.
A neon game board with four colors of cartoon slimes forming connected chains, with score panels in each corner.
Concept art, not the current build: the four player board as a slime themed game.

My role

Creator: game design and engineering.

The problem

Go is a two-player game where one side wins and the other loses. With three or four players the picture changes: scores are not zero-sum, players form alliances, and everyone leans on whoever is ahead. Slime-Go is a territory game built to explore that, and a place to see whether agents can learn it.

Playing it

The board takes two, three or four players. Autoplay lets you watch four agents play and removes the speed cap, so the engine can run thousands of moves a second with the screen updating in batches. Play AI puts you on Black against three networks. Multiplayer connects people over a live connection. Opponents also include fixed-rule personalities named Territorial, Opportunist, Pacifist and Random. Overlays switch between stones, a heuristic territory estimate and the network's own prediction of who will own what.

How the agents learn

  • Self-play: The current best network plays itself in all four colors, using tree search guided by its own predictions. Each position, move probability and result, including the final territory margin, goes into a replay buffer in a SQLite database.
  • Three heads: TensorFlow.js trains on batches sampled from that buffer. One head predicts the move the search chose, one predicts who wins, and one predicts where territory will harden.
  • Planning in a learned model: Search follows the MuZero approach. One model encodes the board into a compact field, a second steps that encoding forward after a move, and a third reads out moves, value and territory. The tree search therefore plans without calling the game rules.
  • Promotion: A new candidate plays the champion and the fixed-rule opponents across 24 seat permutations, run in parallel without a display. It replaces the champion only if its utility score is significantly higher. The league also measures variance across seats, to keep positional bias out of training.

Its limits

It is a local prototype built with React, Node and TensorFlow.js. The shared multiplayer research environment, in which players generate games, tune models and judge candidates, is a written vision and is not built. The second image on this page is concept art, not the current build. The last commit is from September 2026.