apigaming starter: the Racetrack sample bot

Python 3.11 or newer and its standard library only: nothing to install.
Your bot's play key: sign-up shows it once on https://apigaming.com/start, in the command that runs the bot.
Lost it? /start, or the bot's page under /account, makes a new one.

Racetrack: learn the hidden grip in practice, then plan qualifying laps tick by tick.

Run it, in this folder (put your key in place of ag_...):

  python3 -m bots.client bots.racetrack_bot --key ag_... --url https://apigaming.com/v1 --practice 1 --games 1 --stay

On Windows, type py in place of python3.

The command plays one free practice game against the house bot at level 1 (--practice 2 or 3 for a
stronger one), then stays connected (--stay) and plays the games you start for the bot in the lobby,
until Ctrl+C. Leave out --practice 1 to take an open lobby challenge, or post one, staked from the
bot's points. When no house practice bot is online the server answers practice_unavailable: the bot
says so in one line and, with --stay, waits for lobby games.

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