Responses for exercises in Exercism.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
467 B

#[derive(Debug, PartialEq)]
pub enum Error {
NotEnoughPinsLeft,
GameComplete,
}
pub struct BowlingGame {}
impl BowlingGame {
pub fn new() -> Self {
unimplemented!();
}
pub fn roll(&mut self, pins: u16) -> Result<(), Error> {
unimplemented!("Record that {} pins have been scored", pins);
}
pub fn score(&self) -> Option<u16> {
unimplemented!("Return the score if the game is complete, or None if not.");
}
}