Skip to main content

A simple library to generate trick combinations for wizard skating.

Project description

wzrdbrain

A library to generate random trick combinations for wizard skating. This library is available in Python and JavaScript versions.

Rocker'd Magic Moves - a trick generator app for wizard skating, is using both libraries.

The mobile web app is utilizing the JavaScript library version. It runs offline.

The Rocker'd RESTFul API endpoints is using the Python library. Read the API docs.

Usage

Python

pip install wzrdbrain

The primary function is generate_combo, which returns a list of trick dictionaries. You can also create Trick objects directly for more control.

from wzrdbrain import generate_combo, Trick

# Generate a combo of 3 tricks
# To get just the names of the tricks in the combo:
combo = generate_combo(3)
trick_names = [trick['name'] for trick in combo]
print(trick_names)
# Example output: ['front open gazelle', 'fakie 360', 'back open lion']
#

JavaScript

https://cdn.jsdelivr.net/gh/nazroll/wzrdbrain/src/wzrdbrain/wzrdbrain.min.js

This library also provides a JavaScript version of the trick generation logic, which can be used in any environment that supports ES6 modules.

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

// Generate a combo of 3 tricks
const combo = generateCombo(3);

// Get the names of the tricks
const trickNames = combo.map(trick => trick.name);
console.log(trickNames);

For more examples, read the usage documentation.

Contribution

We welcome contributions! wzrdbrain is fully open source (Apache 2.0), and we encourage the community to:

  • Submit a new move/trick into the database.
  • Report bugs and suggest features
  • Improve documentation
  • Submit code improvements

To contribute to this project, please read the contributing guide.

Credits

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

  • Billy Arlew: for being a reliable source of inspiration and domain knowledge to the wizard tricks dictionary.
  • Eelco Soesman: for being a supportive Slightly Rockerd crew and early tester.
  • Bas Bavinck: for being the beacon of wizardry with his book and supporting this project.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: wzrdbrain-0.2.tar.gz
  • Upload date:
  • Size: 9.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.2.tar.gz
Algorithm Hash digest
SHA256 536ea908bf9d2cce9801910210a80b9df4edcf6ca7991dd587f5bd5539fa0231
MD5 8b6de51dc48702f491ad5a61b78bc141
BLAKE2b-256 aa3215e79c956ce0b90f56cb99c3e9aec8c21e2ca6243a9db281d8509c6e8392

See more details on using hashes here.

Provenance

The following attestation bundles were made for wzrdbrain-0.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: wzrdbrain-0.2-py3-none-any.whl
  • Upload date:
  • Size: 9.1 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2a5a69926a1a37b2eea6b54d9b4e315dc5b79d5eb254a931dd08547920f49677
MD5 7d3acf34835b2d8b80849a14352373b2
BLAKE2b-256 5ec5d6076deaddfed6e05be79297938932e0cf908aa1462d865e7d0ffe4bf54d

See more details on using hashes here.

Provenance

The following attestation bundles were made for wzrdbrain-0.2-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