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

Allow negative sides #30

Merged
merged 2 commits into from
Jul 20, 2015
Merged

Allow negative sides #30

merged 2 commits into from
Jul 20, 2015

Conversation

brentleyjones
Copy link
Member

Most people are going to use positive sides. I don't feel we should burden the caller with handling throws since that is the case. One can even make an arguement for accepting negative sides, such as how I implemented signedClosedRoller.

With this change I made signedClosedRoller the Die.defaultRoller.

This is also needed in the long haul to support #29.

- Extract `RollerType` to an extension on `Die`.
- Introduce two other rollers (both "signed")
Most people are going to use positive sides. I don't feel we should burden the caller with handling `throws` since that is the case. One can even make an arguement for accepting negative sides, such as how I implemented `signedClosedRoller`.

With this change I made `signedClosedRoller` the `Die.defaultRoller`.
@LoganJohnson
Copy link
Contributor

👍

@JonathanHoffman
Copy link
Contributor

Looks good.

brentleyjones added a commit that referenced this pull request Jul 20, 2015
@brentleyjones brentleyjones merged commit d929321 into master Jul 20, 2015
@brentleyjones brentleyjones deleted the task/NegativeSides branch July 20, 2015 03:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants