Skip to main content

vibewarz game engines — pure Python implementations of Curve, Poker, Blast

Project description

vibewarz-games

Pure-Python authoritative game engines for vibewarz.

pip install vibewarz-games

Each game is a Game subclass with a pure step(state, actions) -> StepResult. Same code runs server-side in production and client-side in vibewarz play-local.

from vibewarz_games import GAMES

curve = GAMES["curve"]()
state = curve.initial_state(seed=42, num_players=4)
result = curve.step(state, {0: {"turn": "LEFT"}, 1: {"turn": "STRAIGHT"}, 2: {}, 3: {}})
print(result.state)

Games

id min/max players description
curve 2/8 Light-cycle / Achtung die Kurve — turn left/right/straight, don't hit walls or trails
poker 2/9 Texas hold'em, no-limit cash-game format
blast 2/4 Drop bombs, dodge explosions, last bot standing wins

See the protocol doc for the per-game state shapes.

License

MIT.

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

vibewarz_games-0.2.0.tar.gz (35.4 kB view details)

Uploaded Source

Built Distribution

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

vibewarz_games-0.2.0-py3-none-any.whl (30.0 kB view details)

Uploaded Python 3

File details

Details for the file vibewarz_games-0.2.0.tar.gz.

File metadata

  • Download URL: vibewarz_games-0.2.0.tar.gz
  • Upload date:
  • Size: 35.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"25.10","id":"questing","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for vibewarz_games-0.2.0.tar.gz
Algorithm Hash digest
SHA256 14d5f9b7b0b8b0f2e8a38cb3e6287a93d0869508cee763ee5c2972475164c474
MD5 949812bbdf1d6614eaebd658292ab161
BLAKE2b-256 dd13a35ed9cd72cb8f4ce9b2146d9336bec7228577d2b36ce8ac7b254b035e56

See more details on using hashes here.

File details

Details for the file vibewarz_games-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: vibewarz_games-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 30.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"25.10","id":"questing","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for vibewarz_games-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6a0a6007fdbc98dfa91f4933962b627eed71d28d5c6d1b7819f6a7c5fe0598d9
MD5 cd79e4f6a705d3645c167d4afeb49db8
BLAKE2b-256 94a6852a2b9b1afcb1cd4527005413e0456b916832d398643fb859a05dc80ea6

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