Files
pokerfreak/src/game/action_record.rs
T

14 lines
557 B
Rust

use super::{SeenAction, Street};
/// One entry of the observed action sequence, in the order it happened.
/// Wire shape (extension): `{"street": "PREFLOP", "seat": 2, "action": "RAISE", "amount": 0.3}`.
#[derive(Clone, Copy, Debug, PartialEq)]
pub struct ActionRecord {
pub street: Street,
pub seat: u8,
pub action: SeenAction,
/// For posts, bets, raises, calls and all-ins: the player's total contribution on
/// this street after the action (raise-to semantics, like `minRaiseTo`). `None` if unknown.
pub amount: Option<f64>,
}