/// Rotates the active player's placement ship in the given direction.
///
/// # Errors
///
/// Returns an error if the game's state is not `GameState::Placement`.
Rotates the active player's placement ship in the given direction.
Rotates the active player ' s placement ship in the given direction .
pub fn rotate_ship(&mut self) -> Result<(), &'static str> {
        if self.state != GameState::Placement {
            Err("tried to rotate ship outside of placement game state")
        } else {
            self.players[self.turn as usize].rotate_placement_ship()?;
            Ok(())
        }
    }
pub fn rotate_ship ( & mut self ) -> Result < ( ) , & ' static str > { if self . state != GameState :: Placement { Err ( " " ) } else { self . players [ self . turn as usize ] . rotate_placement_ship ( ) ? ; Ok ( ( ) ) } }
Rotates the active player's placement ship in the given direction.
Rotates the active player ' s placement ship in the given direction .
&mut self
errors
Returns an error if the game's state is not `GameState::Placement`.
Returns an error if the game ' s state is not ` GameState :: Placement ` .