fn scale(coord: (u32, u32), dir: (i32, i32), n: i32) -> (u32, u32) {
    let (x, y) = coord;
    let (dx, dy) = dir;
    (((x as i32 + dx * n) as u32), ((y as i32 + dy * n) as u32))
}
// helper function: given a coordinate and a relative direction, get
// the coordinate n spaces away in that direction.
helper function: given a coordinate and a relative direction, get
the coordinate n spaces away in that direction.
helper function : given a coordinate and a relative direction get the coordinate n spaces away in that direction .
fn scale(coord: (u32, u32), dir: (i32, i32), n: i32) -> (u32, u32) {
    let (x, y) = coord;
    let (dx, dy) = dir;
    (((x as i32 + dx * n) as u32), ((y as i32 + dy * n) as u32))
}
fn scale ( coord : ( u32 , u32 ) , dir : ( i32 , i32 ) , n : i32 ) -> ( u32 , u32 ) { let ( x , y ) = coord ; let ( dx , dy ) = dir ; ( ( ( x as i32 + dx * n ) as u32 ) , ( ( y as i32 + dy * n ) as u32 ) ) }
helper function: given a coordinate and a relative direction, get
the coordinate n spaces away in that direction.
helper function : given a coordinate and a relative direction get the coordinate n spaces away in that direction .
coord
(u32, u32)
dir
(i32, i32)
n
i32