use crate::pins::PinSet;
#[derive(Debug, Clone, PartialEq, Eq, thiserror::Error)]
pub enum BowlingError {
#[error("invalid delivery: tried to knock {knocked} but only {standing} are standing")]
InvalidDelivery {
knocked: PinSet,
standing: PinSet,
},
#[error("player name must not be empty")]
EmptyPlayerName,
}