Function checkOutsideBoundary(const Node&, const int)

Function Documentation

bool checkOutsideBoundary(const Node &node, const int n)

checks whether the node is outside the boundary of the grid

Return
whether the node is outside the boundary of the grid
Parameters
  • node: node who’s coordinates are to be checked
  • n: size of the grid