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

Add Fate die support #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add Fate die support #11

wants to merge 1 commit into from

Conversation

xudonax
Copy link

@xudonax xudonax commented Feb 24, 2023

Summary

This is kinda rough, but should work fine. A physical Fate die is a d6 containing two - signs, two + signs, and two blank sides. This is emulated using -1 for the - sign, +1 for the + sign, and a 0 for the blank side. The result is that we can still add them up (so 10dF work), subtract them, keep highest etcetera.

Also added a FateLiteral class that's optional, it's just there to make the result (when looking at result. Expr) a bit nicer.

Resolves #8

Checklist

PR Type

  • This PR is a code change that implements a feature request.
  • This PR fixes an issue.
  • This PR adds a new feature that is not an open feature request.
  • This PR is not a code change (e.g. documentation, README, ...)

Other

  • This PR is a breaking change (e.g. methods or parameters removed/renamed)
  • If code changes were made then they have been tested.
  • I have updated the documentation to reflect the changes.

This is kinda rough, but should work fine. A physical Fate die is a d6
containing two - signs, two + signs, and two blank sides. This is
emulated using -1 for the - sign, +1 for the + sign, and a 0 for the
blank side. The result is that we can still add them up (so 10dF work),
subtract them, keep highest etcetera.

Also added a FateLiteral class that's optional, it's just there to make
the end result (when looking at `result.expr`) a bit nicer.
@xudonax
Copy link
Author

xudonax commented Feb 24, 2023

I couldn't find where the readthedocs site is generated from, but I did update the README, I hope that's enough to tick the "I have updated the documentation to reflect the changes"

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

Successfully merging this pull request may close these issues.

support for Fate/Fudge dice
1 participant