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
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b83473ef055d5639cd36d91c86a0c8c63ca0dd4c3c2e139e0d5be54fbe9e1dea
|
|
| MD5 |
6051bd2b3d799123f782f16f420614b1
|
|
| BLAKE2b-256 |
e086559c5df4dd4e93bcba9563f0f727088213c307f131b3888276ac419b34e2
|