Skip to main content

A simple library to generate trick combinations and moves for wizard style inline skating.

Project description

wzrdbrain

wzrdbrain is a physics-aware combo generator for wizard skating. It models moves as state transitions — each trick transforms the skater's physical state (direction, edge, stance, weight point) so generated combinations are actually executable, not just random names.

If you're a wizard skater, the best way to use this project is through the Rocker'd Magic Moves app!

The app is powered by this library and works on your phone, even offline.

Logic makes magic.

How it works

Every move in the library defines an entry state (what the skater needs to be doing) and an exit state (what the skater ends up doing). The combo generator chains moves by matching exit states to entry states, producing sequences that flow naturally.

The move library (moves.json) contains 64 move variants across 7 categories:

Category Examples Count
Base Predator, Predator One 4
Turn Parallel Turn, Tree Turn 4
Transition Gazelle, Lion, Lion S, Gazelle S, 180, 360, 540 22
Pivot Toe Pivot, Heel Pivot (all direction/stance combos) 8
Swivel Stunami, UFO Swivel 4
Manual Toe/Heel Press, Toe/Heel Roll 8
Slide Parallel, Soul, Acid, Mizu, Star, Fast, Back 14

Contributing

We welcome contributions! wzrdbrain is an open-source project, and we encourage the community to help in many ways.

Want to add a new trick?

This is the most common way for skaters to contribute! Add a new move entry to src/wzrdbrain/moves.json with its entry/exit states. See the research doc for the state model and edge conventions.

To get started, please read our contributing guide which will walk you through the process.

Other ways to contribute

  • Report bugs and suggest features
  • Improve documentation
  • Submit code improvements for the Python or JavaScript libraries

For developers

This library is available in both Python and JavaScript.

Python usage

Install the package from PyPI:

pip install wzrdbrain

Use generate_combo to get a list of trick dictionaries with full state information.

from wzrdbrain import generate_combo

combo = generate_combo(3)
for trick in combo:
    print(f"{trick['name']}: {trick['entry']['direction']}{trick['exit']['direction']}")
# Example output:
# Front Predator (Open): front → front
# Front Gazelle (Open): front → back
# Back Lion (Open): back → front

Each trick dict contains id, name, category, stage, entry and exit state objects.

JavaScript usage

You can use the ES6 module directly from the JSDelivr CDN.

import { generateCombo } from 'https://cdn.jsdelivr.net/gh/nazroll/wzrdbrain@v0.3.0/src/wzrdbrain/wzrdbrain.js';

const combo = generateCombo(3);
combo.forEach(trick => {
    console.log(`${trick.name}: ${trick.entry.direction}${trick.exit.direction}`);
});

Credits

Many thanks to the wizard skating community for their valuable feedback and support. Special thanks to:

License

This project is licensed under the Apache-2.0 Open Source Software License. See the LICENSE file for details.

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

wzrdbrain-0.3.0.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

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

wzrdbrain-0.3.0-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file wzrdbrain-0.3.0.tar.gz.

File metadata

  • Download URL: wzrdbrain-0.3.0.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for wzrdbrain-0.3.0.tar.gz
Algorithm Hash digest
SHA256 cd0b29f9bb87ee3ad2c7d6afd3a8b9cf1c43535e8633b75f0859205c5d16d334
MD5 7f595c896beab1795018595e0f725fa2
BLAKE2b-256 8a540c006b42b8eed9bb15058e2b1c5d90f713d7eb28140813adb591d416da15

See more details on using hashes here.

Provenance

The following attestation bundles were made for wzrdbrain-0.3.0.tar.gz:

Publisher: release.yml on nazroll/wzrdbrain

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file wzrdbrain-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: wzrdbrain-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for wzrdbrain-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d004746539b7918bbe40b68c36b3b2edcd71e147c30f8045371d6876f9106118
MD5 846a4efc58da0692653fb7dfe15e86d8
BLAKE2b-256 115b48f08765d6e615b1988dd046e56d7953c986b75db58cbbd3728c7c18ef40

See more details on using hashes here.

Provenance

The following attestation bundles were made for wzrdbrain-0.3.0-py3-none-any.whl:

Publisher: release.yml on nazroll/wzrdbrain

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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