fix: replace DiceRoll sentinel value (-1) with nullable Int? (Closes #78) #120
Reference in New Issue
Block a user
Delete Branch "feature/issue-78-diceroll-sentinel-value-fix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
DiceRoll.numberOfSuccessesfromInt = -1toInt? = nullto make the un-rolled state type-safe?: 0Test plan
nullinstead of-1— no negative number can display0for un-rolled state instead of-1Closes #78