Skip to main content

Wretched Tower

A digital dice-based tool to use as an alternative to tumbling tower mechanics used in games, such as those based on the Wretched and Alone SRD by Sealed Library.

PyPI -- Version Black code style Pre-commit License uv Ruff Security: bandit Checked with pyright Semantic Versions Test results Coverage Status Docs pipeline status

The mechanic

The idea for the mechanic was originally posted by user Speak the Sky during a game jam for the SRD.

Obviously a Jenga tower is a bit more specialised than dice or cards, and can't really been done easily and properly online, so here's a simple mechanic that uses d6s (and an online dice roller like orokos.com):

  1. 1st pull: roll 100(!)d6, take out the 1s,
  2. 2nd pull: roll the dice you have left, take out the 1s etc.
  3. 'lose' when you run out of dice.

100d6 is a lot, which is why you should do this digitally!

The app

The application is implemented as a TUI which you can access via the command line. It creates a tower, handles dice rolls on demand, and provides feedback on how close to utter destruction you happen to be.

Screenshot of the Wretched tower app showing dice remaining and key bindings at the bottom. Currently displays 100 dice and healthy.

Installation

You can install wretched-tower like any other Python application via pip, but you can also sidestep needing to maintain an environment for it by using uv.

uvx wretched-tower

Usage

Simply press ++r++ to roll the tower and the display will update.

Screenshot of the Wretched Tower app in progress, this time showing 47 dice remaining and status Wounded

If you want to start a new tower, press ++ctrl++ + ++n++.

Metadata

Release files for wretched-tower 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wretched-tower 0.1.2
File Size Uploaded Provenance Actions
wretched_tower-0.1.2.tar.gz 11.3 kB Without provenance Details for wretched_tower-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wretched-tower 0.1.2
File Interpreter ABI Platform Actions
wretched_tower-0.1.2-py3-none-any.whl Python 3 none any Details for wretched_tower-0.1.2-py3-none-any.whl

Total release size: 19.0 kB

Release files / wretched_tower-0.1.2.tar.gz

Download URL wretched_tower-0.1.2.tar.gz
Size 11.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b3abe53bea45f55aee47ab253db3ea82ea054bdbc8bbdb6334ff22ddf3fee0f6
BLAKE2b-256 checksum
How to use checksums
a3dddbb1a0249b1e8e5753cbc167faaeb6b2f87189547acbf0aee8c8377791aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.19

Release files / wretched_tower-0.1.2-py3-none-any.whl

Download URL wretched_tower-0.1.2-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0d7b3be192ff7a06bd2359aff20317dd3388a8092b78115f29b91dabd98a4566
BLAKE2b-256 checksum
How to use checksums
b5c2bfa38c2eaeccfdc50302f9c44e5ea93d7e77a74c93506e364a9b3bcace46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.19

Security for wretched-tower 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page