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

Refactor bet_size.rs for issue 16 #17

Merged

Conversation

bkushigian
Copy link
Owner

@bkushigian bkushigian commented Oct 13, 2024

This is a PR to address #16

This PR addresses points in issue #16:

  • Move is_raise related checks from BetSize to BetSizeOptions
  • Make BetSizeOptions fields non-public
  • Rename BetSizeOptions fields (pluralize)

Additionally, this PR implements some serialization/deserialization (which probably belongs in parent PR but I'm lazy), and implements try_from_sizes and as_valid_bets that moves logic about valid bet sizes (versus raise sizes) out of BetSize

@bkushigian bkushigian force-pushed the issue16-refactor-bet_size.rs branch from e50a976 to f1142c8 Compare October 16, 2024 11:03
@bkushigian bkushigian changed the base branch from main to bkushigian/issue14-serde-tree-config October 16, 2024 11:05
@bkushigian bkushigian merged commit 4ee82b8 into bkushigian/issue14-serde-tree-config Oct 16, 2024
2 checks passed
@bkushigian bkushigian deleted the issue16-refactor-bet_size.rs branch October 16, 2024 11:26
@bkushigian bkushigian mentioned this pull request Oct 16, 2024
3 tasks
@bkushigian bkushigian restored the issue16-refactor-bet_size.rs branch October 16, 2024 11:30
@bkushigian bkushigian deleted the issue16-refactor-bet_size.rs branch October 16, 2024 11:44
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.

1 participant