Skip to main content

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: vibewarz_games-0.1.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.1.0.tar.gz
Algorithm Hash digest
SHA256 b5507ade3a7a38e268fa7f1c429dcc0a00984b9e4a87975eb28bfb0e40bca9ca
MD5 34c45aa7bb3fda90f56f80a418eba92f
BLAKE2b-256 2d00376d99b4ad6aedb61960e35335d55155a2e274cb235065b25cd9af23d756

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vibewarz_games-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 30.1 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2bae12c55159f331710e1500e0f41695c6c0cb493ef9f8fa8aed65c8f1dd864e
MD5 48281ca9fd2dae4fdf06c0dc5c4cb1ca
BLAKE2b-256 0ffbd59213b2b732cbdbfe2c4889c582b1bdac83d6ea7ca3c5cf482677a9f624

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