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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
536ea908bf9d2cce9801910210a80b9df4edcf6ca7991dd587f5bd5539fa0231
|
|
| MD5 |
8b6de51dc48702f491ad5a61b78bc141
|
|
| BLAKE2b-256 |
aa3215e79c956ce0b90f56cb99c3e9aec8c21e2ca6243a9db281d8509c6e8392
|
Provenance
The following attestation bundles were made for wzrdbrain-0.2.tar.gz:
Publisher:
release.yml on nazroll/wzrdbrain
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wzrdbrain-0.2.tar.gz -
Subject digest:
536ea908bf9d2cce9801910210a80b9df4edcf6ca7991dd587f5bd5539fa0231 - Sigstore transparency entry: 527394482
- Sigstore integration time:
-
Permalink:
nazroll/wzrdbrain@c2a374ff268ea39dd95c26b82ce89ecbc74c9080 -
Branch / Tag:
refs/tags/v0.2 - Owner: https://github.com/nazroll
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c2a374ff268ea39dd95c26b82ce89ecbc74c9080 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a5a69926a1a37b2eea6b54d9b4e315dc5b79d5eb254a931dd08547920f49677
|
|
| MD5 |
7d3acf34835b2d8b80849a14352373b2
|
|
| BLAKE2b-256 |
5ec5d6076deaddfed6e05be79297938932e0cf908aa1462d865e7d0ffe4bf54d
|
Provenance
The following attestation bundles were made for wzrdbrain-0.2-py3-none-any.whl:
Publisher:
release.yml on nazroll/wzrdbrain
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wzrdbrain-0.2-py3-none-any.whl -
Subject digest:
2a5a69926a1a37b2eea6b54d9b4e315dc5b79d5eb254a931dd08547920f49677 - Sigstore transparency entry: 527394507
- Sigstore integration time:
-
Permalink:
nazroll/wzrdbrain@c2a374ff268ea39dd95c26b82ce89ecbc74c9080 -
Branch / Tag:
refs/tags/v0.2 - Owner: https://github.com/nazroll
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c2a374ff268ea39dd95c26b82ce89ecbc74c9080 -
Trigger Event:
release
-
Statement type: