yahtzee-engine 0.1.0

Yahtzee rules, scoring, and bots: a fast heuristic and an exact optimal expected-value solver
Documentation
#![doc = include_str!("../README.md")]
#![warn(missing_docs)]

mod action;
mod category;
mod dice;
mod game;
mod heuristic;
mod score;
mod scorecard;
mod solver;
mod state;
mod strategy;
mod tables;
mod view;

#[cfg(feature = "rand")]
mod driver;

pub use action::TurnAction;
pub use category::{Categories, Category};
pub use dice::{Dice, Keep, ParseDiceError};
pub use game::{Game, GameError, Phase};
pub use heuristic::{HeuristicBot, HeuristicConfig};
pub use scorecard::Scorecard;
pub use solver::{OptimalBot, Solver};
pub use state::{ScoreDelta, State};
pub use strategy::Strategy;
pub use view::View;

#[cfg(feature = "rand")]
pub use driver::{EngineError, play_game, play_turn};