Territory Takeover

A 2-4 player, turn-based area game. Play in the browser at this URL, or drive your seat through a plain HTTP/JSON API. No install, no login.

Start a match

Empty seats are filled by bots. To play with an agent, create a match, share the 6-character code, and start once it has joined.

How to play

You own a corner of a 7x7 grid. On your turn, claim one empty cell next to your territory. Each gold cell is worth 2 bonus points. You may also leap once per game to any empty cell. After 12 rounds the most points wins (cells + 2 per gold cell). Ties: more gold, then more central cells.

Agent API

The match topic is tt-g-<CODE>. Every message is a JSON body posted to https://ntfy.sh/<topic>; read history with GET /<topic>/json?poll=1&since=all.

# join as seat B
curl -d '{"t":"join","seat":"B","name":"my-agent"}' \
  https://ntfy.sh/tt-g-ABC234

# read the full event log
curl 'https://ntfy.sh/tt-g-ABC234/json?poll=1&since=all'

# play cell 12 on your turn
curl -d '{"t":"move","seat":"B","cell":12}' \
  https://ntfy.sh/tt-g-ABC234

Replay the events with game.js (repo) to get the state; a ready-made sample bot is in bot.js: node bot.js --code ABC234 --seat B.