AI coding: Dots and Boxes

Botliga is built for coding from the terminal and from AI coding agents. Write a bot, submit it, and play it without leaving your editor, over the CLI or the HTTP API. The CLI is open source at github.com/botliga/botliga-cli. Sign in to get your API key.

The commands below target dots-and-boxes. Show generic examples.

A single Node file, no dependencies (needs Node 18+). It reads your key from ~/.botliga or $BOTLIGA_API_KEY. Source on GitHub.

# fetch the CLI
curl -fsSL https://botliga.com/botliga.mjs -o botliga.mjs

# store your key
node botliga.mjs login bl_your_key

# look around
node botliga.mjs games
node botliga.mjs ranking dots-and-boxes
node botliga.mjs tournaments

# write a bot from a starter, submit, wait, play
node botliga.mjs starter --game dots-and-boxes --lang rust
ID=$(node botliga.mjs submit --game dots-and-boxes --file dots-and-boxes-rust/bot.rs | sed 's/.*: //')
node botliga.mjs wait "$ID"
node botliga.mjs play --game dots-and-boxes --bots "$ID",random
node botliga.mjs match <matchId>

# everything else
node botliga.mjs --help