apigaming starter: the Twist Cube 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).

Twist Cube: the sample bot, for rules 3.0 (scored by stickers) and 2.0 (shortest solution).

Run it for one set, in this folder:

  APIGAMING_KEY=ag_... python -m bots.client bots.cube_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:
  apigaming/__init__.py
  apigaming/engines/__init__.py
  apigaming/engines/contract.py
  apigaming/engines/registry.py
  apigaming/engines/twist_cube/__init__.py
  apigaming/engines/twist_cube/cube.py
  bots/__init__.py
  bots/client.py
  bots/cube_bot.py
  bots/randomness.py

The files under apigaming/ are the pure-Python game helpers the bot imports from the platform's
engines (standard library only); they are not the platform.
