pub struct GameState {Show 16 fields
pub hand_number: i64,
pub phase: String,
pub hole_cards: Vec<Card>,
pub board: Vec<Card>,
pub pot: i64,
pub your_stack: i64,
pub opponent_stacks: Vec<i64>,
pub your_seat: i64,
pub dealer_seat: i64,
pub to_call: i64,
pub min_raise: i64,
pub max_raise: i64,
pub valid_actions: Vec<String>,
pub action_history: Vec<ActionHistoryEntry>,
pub round_id: String,
pub request_id: String,
}Expand description
Built from the server’s turn_request message. The parser in
parse_game_state converts the wire-format snake_case to the
owned-string fields below.
Field semantics mirror the Python and JavaScript SDKs exactly so a bot strategy translates 1:1 between languages.
Fields§
§hand_number: i64§phase: String§hole_cards: Vec<Card>§board: Vec<Card>§pot: i64§your_stack: i64§opponent_stacks: Vec<i64>§your_seat: i64§dealer_seat: i64§to_call: i64§min_raise: i64§max_raise: i64§valid_actions: Vec<String>§action_history: Vec<ActionHistoryEntry>§round_id: String§request_id: StringTrait Implementations§
Auto Trait Implementations§
impl Freeze for GameState
impl RefUnwindSafe for GameState
impl Send for GameState
impl Sync for GameState
impl Unpin for GameState
impl UnsafeUnpin for GameState
impl UnwindSafe for GameState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more