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

Uploaded Python 3

File details

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

File metadata

  • Download URL: hexgame-0.4.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 da13fa3d7ce0db5e3530b37e824d269ec65b6d88c1f7fbcde5b11a5b6be79199
MD5 882a6532f33b2e2a2a1cad2c715efee4
BLAKE2b-256 1cf4b8223245de3b2a611b8db3e9d31fb11ce313b43106d5597d31bda0d96253

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