1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/// # Rust Poker
/// A texas holdem poker library
///
/// Currently supports
/// - monte carlo range vs. range equity calculations
/// - full enumeration for exact equities
/// - fast hand evaluation
///
/// ## Equity Calculator
///
/// ```
/// use rust_poker::hand_range::{HandRange, get_card_mask};
/// use rust_poker::equity_calculator::approx_equity;
/// let ranges = HandRange::from_strings(["AK,22+".to_string(), "AA,KK,QQ@50".to_string()].to_vec());
/// let public_cards = get_card_mask("2h3d4c");
/// let std_dev_target = 0.01;
/// let n_threads = 4;
/// let equities = approx_equity(&ranges, public_cards, n_threads, std_dev_target);
/// ```
///
/// ## Hand Evaluator
///
/// ```
/// use rust_poker::hand_evaluator::{Hand, CARDS, evaluate};
/// // cards are indexed 0->51 where index is 4 * rank + suit
/// let hand = Hand::default() + CARDS[0] + CARDS[1];
/// let score = evaluate(&hand);
/// ```
extern crate lazy_static;
extern crate crossbeam;
extern crate rand;
extern crate serde;
extern crate serde_json;
extern crate test;
// extern crate rust_embed;
extern crate hand_indexer;
pub use ;
pub use read_write;