Skip to content

Allow the use of all Rollables in Dice #85

@Samasaur1

Description

@Samasaur1

Is your feature request related to a problem? Please describe.

It doesn't make a lot of sense that WeightedDie cannot be used in Dice, and in a larger sense why any Rollable can't be. Rollable requires implementations of what I'm pretty sure are all the rolling/probabilities methods that Die has that Dice uses. It requires looking into, and refactoring some parts of Dice, but it seems like an overdue feature.

Describe the solution you'd like:

Users should be able to use and Rollable type in Dice. This includes the initializers (probably excluding the dice notation String-based initializer), operators, and pretty much everywhere else.

Describe alternatives you've considered:

Maybe Dice should only allow WeightedDie/Rollable types that I define, but that seems overly restrictive. That's what having a protocol is for.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions