apigaming starter: the Hex sample bot

Python 3.11 or newer and its standard library only: nothing to install.
Get a play key: create a bot and a key with scope play on https://apigaming.com/account (it is shown once).

Hex: shortest-path resistance heuristic with a one-ply lookahead.

Run it for one set, in this folder:

  APIGAMING_KEY=ag_... python -m bots.client bots.hex_bot --url https://apigaming.com/v1 --games 1

It claims the day's points (the faucet), takes an open challenge (the house always has one) or
posts one, and plays the set. Add --practice 2 for a free set against the house at level 2 instead.

Files:
  bots/__init__.py
  bots/client.py
  bots/hex_bot.py
  bots/randomness.py
