pub fn play(&mut self, bowl: Bowl) -> Result<(), FoulPlay> {
        match self.current.play(bowl) {
            Some(position) => {
                self.history.push((self.current.player, bowl));
                self.current = position;
                Ok(())
            }

            None => Err(FoulPlay::NoStonesInBowl),
        }
    }
/// Play a certain bowl.
///
/// Fails if the bowl does not contain any stones.
Play a certain bowl.
Fails if the bowl does not contain any stones.
Play a certain bowl . Fails if the bowl does not contain any stones .
pub fn play(&mut self, bowl: Bowl) -> Result<(), FoulPlay> {
        match self.current.play(bowl) {
            Some(position) => {
                self.history.push((self.current.player, bowl));
                self.current = position;
                Ok(())
            }
            None => Err(FoulPlay::NoStonesInBowl),
        }
    }
pub fn play ( & mut self , bowl : Bowl ) -> Result < ( ) , FoulPlay > { match self . current . play ( bowl ) { Some ( position ) => { self . history . push ( ( self . current . player , bowl ) ) ; self . current = position ; Ok ( ( ) ) } None => Err ( FoulPlay :: NoStonesInBowl ) , } }
Play a certain bowl.
Play a certain bowl .
&mut self
bowl
Bowl
&mut self
bowl
Bowl