Skip to content
Dan Riddell edited this page Aug 7, 2026 · 5 revisions

hegemony

hegemony — rule by one, settled on a grid.

A territory-war simulation where competing algorithms fight to control a shared grid.

hegemony pits pluggable strategies against each other on a shared grid: factions expand, attack, and defend to claim territory. Run a batch tournament headlessly, or watch a single match in the GUI.

a full free-for-all

Commands

Command Wiki page Description
hegemony headless hegemony headless Run a batch tournament across strategies and print a result table
hegemony run hegemony run Watch a match in the GUI — war map and leaderboard in separate windows
hegemony evolve hegemony evolve Search weights for the Evolved strategy and print the best vector

All three share the same simulation parameters, and enter the same strategies.

Page Description
Strategies The thirteen registered strategies
Simulation parameters The flags shared by every command
Demos War-map clips, and how they are generated

Install

Homebrew

# headless CLI
brew install danielriddell21/tap/hegemony

# GUI
brew install --cask danielriddell21/tap/hegemony

Go install

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

A go install build is headless only — the GUI sits behind the ebiten build tag. See hegemony run.

Links

Clone this wiki locally