Skip to content

finish die / coin implementation#76

Merged
peterhurford merged 3 commits intomainfrom
claude/complete-squigglepy-pr-48-JHFQH
Jan 9, 2026
Merged

finish die / coin implementation#76
peterhurford merged 3 commits intomainfrom
claude/complete-squigglepy-pr-48-JHFQH

Conversation

@peterhurford
Copy link
Collaborator

No description provided.

claude added 2 commits January 9, 2026 00:26
- Add new dice.py module with Die and Coin distribution classes
- Die supports exploding dice mechanics via explode_on parameter
- Both Die and Coin are OperableDistribution subclasses
- Deprecate roll_die() and flip_coin() utility functions
- Update samplers.py with die_sample() and coin_sample() functions
- Add comprehensive tests for new dice module
- Update README.md with new dice/coin usage examples
- Update CHANGES.md with new feature documentation
These utility functions have been replaced by the new die() and coin()
distribution objects. Since the library is not yet at a stable release
and these weren't popular features, removing them entirely instead of
deprecating.
@peterhurford peterhurford mentioned this pull request Jan 9, 2026
- Assert actual seeded values in test_die_basic and test_coin_basic
- Add OperableDistribution assertions in test_die_is_operable and
  test_coin_is_operable to match test descriptions
- Remove dead _single_roll_v2 naming, now just _single_roll
@peterhurford peterhurford merged commit 93a7cb8 into main Jan 9, 2026
5 checks passed
@peterhurford peterhurford deleted the claude/complete-squigglepy-pr-48-JHFQH branch January 9, 2026 02:35
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.

2 participants