|
|
@ -70,9 +70,9 @@ impl Apr { |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
pub fn set_colour(&mut self, r: usize, c: usize, col: u8) { |
|
|
|
pub fn set_colour(&mut self, r: usize, c: usize, clr: u8) { |
|
|
|
//You should only modify self.board through this method.
|
|
|
|
self.board.board[r][c] = col; //Making a getter for self.board would sadly break borrowing in the same way that closest_square_coords does.
|
|
|
|
self.board.board[r][c] = clr; //Making a getter for self.board would sadly break borrowing in the same way that closest_square_coords does.
|
|
|
|
self.should_update_grid = true; //Similar solutions apply.
|
|
|
|
} |
|
|
|
} |
|
|
|