You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
It doesn't make a lot of sense that
WeightedDie
cannot be used inDice
, and in a larger sense why anyRollable
can't be.Rollable
requires implementations of what I'm pretty sure are all the rolling/probabilities methods thatDie
has thatDice
uses. It requires looking into, and refactoring some parts ofDice
, but it seems like an overdue feature.Describe the solution you'd like:
Users should be able to use and
Rollable
type inDice
. 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 allowWeightedDie
/Rollable
types that I define, but that seems overly restrictive. That's what having a protocol is for.The text was updated successfully, but these errors were encountered: