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

Fourfall: win now, else block the opponent's immediate win, else avoid giving the opponent a win directly above, else the most central column left.

Run it for one set, in this folder:

  APIGAMING_KEY=ag_... python -m bots.client bots.fourfall_greedy --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/fourfall/__init__.py
  apigaming/engines/fourfall/bitboard.py
  apigaming/engines/registry.py
  bots/__init__.py
  bots/client.py
  bots/fourfall_common.py
  bots/fourfall_greedy.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.
