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.1-py3-none-any.whl (27.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hexgame-0.4.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d7bfb720a9124b6bcdd0a0e3ff3d992e81f14d81b7d8c4d38135a12f13d454e3
MD5 c4723176f93113ec9ff1848a25ea517a
BLAKE2b-256 1bdbd2eb48725b46ee9761a3707d4aea4e17c7a9193d4ee050a901be85e090dc

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