rs_poker 5.0.0

A library to help with any Rust code dealing with poker. This includes card values, suits, hands, hand ranks, 5 card hand strength calculation, 7 card hand strength calulcation, and monte carlo game simulation helpers.
Documentation
1
2
3
4
5
6
7
8
9
use crate::arena::{Agent, GameState};

/// AgentBuilder is a trait that is used to build agents for tournaments
/// where each simulation needs a new agent.
pub trait AgentGenerator {
    /// This method is called before each game to build a new agent.
    /// The `player_idx` parameter indicates which player position this agent is for.
    fn generate(&self, player_idx: usize, game_state: &GameState) -> Box<dyn Agent>;
}