[−][src]Struct rust_poker::equity_calculator::EquityCalc
Implementations
impl EquityCalc
[src]
pub fn start(
hand_ranges: &Vec<HandRange>,
board_mask: u64,
n_threads: u8,
sim_count: u64
) -> Vec<f64>
[src]
hand_ranges: &Vec<HandRange>,
board_mask: u64,
n_threads: u8,
sim_count: u64
) -> Vec<f64>
Runs a monte carlo simulation to calculate range vs range equity
Returns the equity for each player
Arguments
hand_ranges
Array of hand rangesboard_mask
64 bit mask of public cardsn_threads
Number of threads to use in simulationsim_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
impl RefUnwindSafe for EquityCalc
impl Send for EquityCalc
impl Sync for EquityCalc
impl Unpin for EquityCalc
impl UnwindSafe for EquityCalc
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,