use crate::geometry::PinGeometry;
use super::{BonusScheme, DeadwoodPolicy, Ruleset};
#[derive(Debug, Clone, Copy)]
pub struct Candlepin;
impl Ruleset for Candlepin {
const PIN_COUNT: u8 = 10;
const FRAME_COUNT: u8 = 10;
const BALLS_PER_FRAME: u8 = 3;
const DEADWOOD: DeadwoodPolicy = DeadwoodPolicy::Remains;
const BONUS: BonusScheme = BonusScheme::Traditional {
strike_bonus_balls: 2,
spare_bonus_balls: 1,
};
const ALL_DOWN_IS_SPARE: bool = true;
fn geometry() -> Option<&'static PinGeometry> {
None
}
fn name() -> &'static str {
"Candlepin Bowling"
}
}