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
use clap::{Args, Subcommand};

pub mod simulate;

#[derive(Args)]
pub struct IcmArgs {
    #[command(subcommand)]
    command: IcmCommand,
}

#[derive(Subcommand)]
enum IcmCommand {
    /// Run cEV -> $EV Simulation
    Simulate(simulate::SimulateArgs),
}

#[derive(Debug, thiserror::Error)]
pub enum MatusowMeltdown {
    #[error(transparent)]
    Simulate(#[from] simulate::SimulateError),
}

pub async fn run(args: IcmArgs) -> Result<(), MatusowMeltdown> {
    match args.command {
        IcmCommand::Simulate(a) => simulate::run(a).await?,
    }
    Ok(())
}