/// Processes secondary button presses according to the current program state.
Processes secondary button presses according to the current program state.
Processes secondary button presses according to the current program state .
fn button_secondary(&mut self) {
        if self.game.is_player_placing_ship() {
            self.game.rotate_ship().expect("failed to rotate ship");
        }
    }
fn button_secondary ( & mut self ) { if self . game . is_player_placing_ship ( ) { self . game . rotate_ship ( ) . expect ( " " ) ; } }
Processes secondary button presses according to the current program state.
Processes secondary button presses according to the current program state .
&mut self