()
| 14 | |
| 15 | impl Player { |
| 16 | pub fn new() -> Self { |
| 17 | Self { |
| 18 | x: NUM_COLS / 2, |
| 19 | y: NUM_ROWS - 1, |
| 20 | shots: Vec::new(), |
| 21 | } |
| 22 | } |
| 23 | pub fn move_left(&mut self) { |
| 24 | if self.x > 0 { |
| 25 | self.x -= 1; |
nothing calls this directly
no outgoing calls
no test coverage detected