fn move_direction(pos: Point, gb: GameBoard) -> GridDirection {
     // Run in a quadrant square pattern
     let quarter_height = gb.height as i32 / 4;
     let quarter_width = gb.width as i32 / 4;

     if pos.x <= quarter_width && pos.y < 3 * quarter_height {
          GridDirection::North
     } else if pos.x < 3 * quarter_width && pos.y >= 3 * quarter_height {
          GridDirection::East
     } else if pos.x >= 3 * quarter_width && pos.y >= quarter_height {
          GridDirection::South
     } else {
          GridDirection::West
     }
}
// Sir Emony and Deeploy Jenkinns are great friends. They hope to meet up sometime
Sir Emony and Deeploy Jenkinns are great friends. They hope to meet up sometime
Sir Emony and Deeploy Jenkinns are great friends . They hope to meet up sometime
fn move_direction(pos: Point, gb: GameBoard) -> GridDirection {
     // Run in a quadrant square pattern
     let quarter_height = gb.height as i32 / 4;
     let quarter_width = gb.width as i32 / 4;
     if pos.x <= quarter_width && pos.y < 3 * quarter_height {
          GridDirection::North
     } else if pos.x < 3 * quarter_width && pos.y >= 3 * quarter_height {
          GridDirection::East
     } else if pos.x >= 3 * quarter_width && pos.y >= quarter_height {
          GridDirection::South
     } else {
          GridDirection::West
     }
}
fn move_direction ( pos : Point , gb : GameBoard ) -> GridDirection { // Run in a quadrant square pattern let quarter_height = gb . height as i32 / 4 ; let quarter_width = gb . width as i32 / 4 ; if pos . x <= quarter_width && pos . y < 3 * quarter_height { GridDirection :: North } else if pos . x < 3 * quarter_width && pos . y >= 3 * quarter_height { GridDirection :: East } else if pos . x >= 3 * quarter_width && pos . y >= quarter_height { GridDirection :: South } else { GridDirection :: West } }
Sir Emony and Deeploy Jenkinns are great friends.
Sir Emony and Deeploy Jenkinns are great friends .
pos
Point
gb
GameBoard
pos
Point
gb
GameBoard