[][src]Struct rust_poker::equity_calculator::EquityCalc

pub struct EquityCalc { /* fields omitted */ }

Implementations

impl EquityCalc[src]

pub fn start(
    hand_ranges: &Vec<HandRange>,
    board_mask: u64,
    n_threads: u8,
    sim_count: u64
) -> Vec<f64>
[src]

Runs a monte carlo simulation to calculate range vs range equity

Returns the equity for each player

Arguments

  • hand_ranges Array of hand ranges
  • board_mask 64 bit mask of public cards
  • n_threads Number of threads to use in simulation
  • sim_count Number of games to simulate

Example

use rust_poker::hand_range::{HandRange, get_card_mask};
use rust_poker::equity_calculator::EquityCalc;
let ranges = HandRange::from_str_arr(["random", "random"].to_vec());
let board_mask = get_card_mask("");
let equities = EquityCalc::start(&ranges, board_mask, 4, 1000);

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,