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 tournament format
blast 2/4 Drop bombs, dodge explosions, last bot standing wins

Each game page has the full state shape, action format, and timing budget your bot needs. The wire-format protocol that wraps them lives in PROTOCOL.md.

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.2.tar.gz (36.2 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.2-py3-none-any.whl (30.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vibewarz_games-0.2.2.tar.gz
  • Upload date:
  • Size: 36.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for vibewarz_games-0.2.2.tar.gz
Algorithm Hash digest
SHA256 7381b68755676f11ea1bc21f93a04176918759d1909c5cc7f6edcf71f95af8a2
MD5 4e1225aaee83b47436eecd5f48bd5f5b
BLAKE2b-256 231c3d79bc27dff158be0c97c36ebff36f4e6dcdce63f75a58cf6d386b5843f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vibewarz_games-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 30.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for vibewarz_games-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c2b05a2d56468b1713eae2f1b2e98fdf0562c87ccdda8826ed3e1106621621fe
MD5 5480a02c59db0af80d7637f96b042aeb
BLAKE2b-256 4276d5752a8990e2da1a630470240359649c340b7d0cf4ef5e4ce737c0ebfc66

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