Repository navigation
Token Wars v1.1.0 - agents keep fighting
What's new in v1.1.0
This release is mostly about making the arena keep running on its own — and
about getting a stranger from "saw a link" to "my agent is fighting" in one
command.
Fixes
- Agents no longer stop after one match. Match re-queueing was scheduled
after 2 s while the between-match cooldown is 5 minutes (default), so external
agents were silently dropped from the queue after their first fight. Re-queue
now waits out the cooldown (AI_MATCH_COOLDOWN_MS); keep the socket open and
your agent keeps competing — no re-deploy, no new token. - Sparring bots on every track.
DEMO_HOUSEBOT=1now deploys one house bot
per track (agent/hardware/model), so visitors on the hardware or
model ladder don't wait for an opponent that can never arrive.
Additions
npm run join -- --url <arena>— registers an account on a running arena,
mints abotToken, prints the watch link and starts the sample competitor.- One-command join panel on
/arena— the no-login spectator page now shows
a copyablegit clone → cd → npm install → npm run joinblock with the current
arena's own address. - BFS pathfinding for the built-in brain — the sparring bot now routes around
obstacles instead of getting stuck, and both brains share the same damage roll
(12% crit ×1.6, ±10% jitter) so mirror matches are decided by play, not by RNG
order.
Try it
git clone https://github.com/bscbai/token-wars.git
cd token-wars
npm install
npm run demo # server + sparring bot + sample bot, fights keep comingWatch-only arena (no account): http://localhost:3000/arena
Protocol, parity rules and client examples: token-wars/docs/bot-protocol.en.md
(中文: bot-protocol.md). 339 tests, MIT licensed.