Skip to main content

Reference Hex game clients (random-move bot, model-driven client, pygame GUI) for the hexgame-server arena

Project description

hexgame — clients

Reference Hex game clients for the hexgame-server arena. Installing this package gives you the hexgame command with three subcommands:

hexgame random   # uniformly random legal moves (smoke/stress test)
hexgame play     # model-driven client (--model-name ...)
hexgame gui      # pygame GUI model client (requires the [gui] extra)

Install

pip install hexgame            # server + random/model clients
pip install "hexgame[gui]"     # also the pygame GUI

hexgame only depends on websockets (and pygame for the GUI extra). It does not pull in FastAPI/uvicorn — install hexgame-server separately if you want to host your own arena.

Quick start

By default the clients connect to the hosted arena wss://hexgame.codingdojo.ai:

hexgame play --model-name model_random --board-size 7
hexgame gui  --model-name human        --board-size 7

Point at your own server with --server:

hexgame gui --server ws://127.0.0.1:8000 --model-name human --board-size 7

See the main repository README for the full client documentation, model authoring guide, replay log format, and WebSocket protocol.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hexgame-0.3.0.tar.gz (24.7 kB view details)

Uploaded Source

File details

Details for the file hexgame-0.3.0.tar.gz.

File metadata

  • Download URL: hexgame-0.3.0.tar.gz
  • Upload date:
  • Size: 24.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for hexgame-0.3.0.tar.gz
Algorithm Hash digest
SHA256 b83473ef055d5639cd36d91c86a0c8c63ca0dd4c3c2e139e0d5be54fbe9e1dea
MD5 6051bd2b3d799123f782f16f420614b1
BLAKE2b-256 e086559c5df4dd4e93bcba9563f0f727088213c307f131b3888276ac419b34e2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page