Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zero-indexed Dice (0-9 d10s, 0-5 d6s, etc.) #214

Open
Teguki opened this issue Jan 19, 2023 · 2 comments
Open

Zero-indexed Dice (0-9 d10s, 0-5 d6s, etc.) #214

Teguki opened this issue Jan 19, 2023 · 2 comments

Comments

@Teguki
Copy link

Teguki commented Jan 19, 2023

It'd be nice if there were a way roll d10s and have them present the way they normally do on a table - 0-9 instead of 1-10.

Perhaps there could be an alias that's more general than just d10s - say, "2z4" instead of "2d4" - that rolls and adds together 0-indexed dice instead of 1-indexed dice. The output would be something like "Request: [3z4] Roll: [3, 2, 0] Result: 5"

Zero-indexed dice aren't used very often, but they do occur: the Royal Game of Ur uses 0-indexed coin flips (d2s, 0-1) to determine the number of tiles you must move.

@r4dian
Copy link

r4dian commented Aug 23, 2023

Just -1 ?

@Teguki
Copy link
Author

Teguki commented Aug 23, 2023

Subtracting 1 is a solution, but it's a clumsy patch over the problem, and cumbersome to type in larger dice formulae.

Adding zero-indexed dice to Dice Maiden vastly simplifies some areas of dice maths (see the percentile advantage readability issue: #216 ), and makes outputs involving lots of dice more readable.

Custom-range dice would be a more general solution, but they'd be harder to write concisely, I think. Perhaps something like "3d2t5", meaning "3 dice, range 2 to 5"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants