Wire: optional history decoding. exploit::range_model: role band + postflop continuations. preflop::button / seat_position: button inference from blinds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
20 lines
491 B
Rust
20 lines
491 B
Rust
/// Bet size (chips added / pot before) as a number of rungs: bigger bets are stricter.
|
|
///
|
|
/// | ratio | rungs |
|
|
/// |---|---|
|
|
/// | below 0.4 pot | -1 |
|
|
/// | 0.4 up to 0.9 | 0 |
|
|
/// | 0.9 up to 1.8 | +1 |
|
|
/// | 1.8 and more | +2 |
|
|
///
|
|
/// Unknown (or NaN) size: 0.
|
|
pub fn size_notch(ratio: Option<f64>) -> i32 {
|
|
match ratio {
|
|
Some(r) if r < 0.4 => -1,
|
|
Some(r) if r < 0.9 => 0,
|
|
Some(r) if r < 1.8 => 1,
|
|
Some(r) if r >= 1.8 => 2,
|
|
_ => 0,
|
|
}
|
|
}
|