bkushigian / postflop-solver

An open-source postflop solver library written in Rust
GNU Affero General Public License v3.0
8 stars 0 forks source link

Refactor bet_size.rs for issue 16 #17

Closed bkushigian closed 1 month ago

bkushigian commented 1 month ago

This is a PR to address #16

This PR addresses points in issue #16:

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