tracks/rust/exercises/bowling/src/lib.rs in trackler-2.2.1.128 vs tracks/rust/exercises/bowling/src/lib.rs in trackler-2.2.1.129

- old
+ new

@@ -1,21 +1,43 @@ \ No newline at end of file +#[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."); + } +}