Crate bjrs

Crate bjrs 

Source
Expand description

A blackjack game engine with optional no_std support.

The crate provides a Game type that manages the full round flow, including betting, player actions, insurance, dealer play, and showdown.

§Example

use bjrs::{Game, GameOptions};

let options = GameOptions::default();
let game = Game::new(options, 42);
let _ = game;

Re-exports§

pub use card::Card;
pub use card::DECK_SIZE;
pub use card::Suit;
pub use error::ActionError;
pub use error::BetError;
pub use error::DealError;
pub use error::InsuranceError;
pub use error::ReshuffleError;
pub use error::ShowdownError;
pub use game::Game;
pub use game::GameState;
pub use game::TurnPosition;
pub use hand::DealerHand;
pub use hand::Hand;
pub use hand::HandStatus;
pub use options::DoubleOption;
pub use options::GameOptions;
pub use options::RoundingMode;
pub use result::HandOutcome;
pub use result::HandResult;
pub use result::PlayerResult;
pub use result::RoundResult;

Modules§

card
Card types and deck utilities.
error
Error types for game operations.
game
Game engine and state management.
hand
Player and dealer hand representations.
options
Game configuration options.
result
Round result types for showdown.