Skip to content
Dan Riddell edited this page Aug 6, 2026 · 4 revisions

gambit

gambit — material sacrificed for position. Also: two bots arguing in algebraic notation.

Two chess agents play each other, every move logged to the terminal in algebraic notation — headless by default, or in an optional Ebiten window. Built as a testbed for experimenting with search strategies.

Documentation

Page Description
Agents The seven built-in strategies, and how to add your own
CLI Flags, the GUI build, and playing against an agent yourself
Demos Animated games rendered straight from the engine

Install

Homebrew

# CLI (all platforms)
brew install danielriddell21/tap/gambit

# native macOS GUI window
brew install --cask danielriddell21/tap/gambit

Go install

go install github.com/danielriddell21/gambit/cmd/gambit@latest

A go install build is headless — the window sits behind the ebiten build tag. See CLI.

Library

pkg/chess is the public package — board, moves, legality, FEN and results — and is usable independently of the agents and GUI.

Go Reference

Links

Clone this wiki locally