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            # random/model clients (websockets only)
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

You can also play directly in the browser at https://hexgame.codingdojo.ai/play — no installation needed. The browser play page supports human vs human matchmaking, an in-browser DQN bot (greedy / minimax / MCTS), and an in-browser AlphaZero bot.

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hexgame-0.4.0-py3-none-any.whl (27.3 kB view details)

Uploaded Python 3

File details

Details for the file hexgame-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: hexgame-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 27.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for hexgame-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 718e3904a416ee5ddf0b91bf2b5e09b31c256d9d625ce3dae0c4bd442d04be10
MD5 1d21b217a413856026ad52277e3e6c2b
BLAKE2b-256 8a24722b512ba623476d195f85a26939f687e42419a2c5433e5c3ba99ccd904b

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