Skip to main content

Helper functions

  • bool is_valid_spawn_position(int x, int y): Given x and y coordinate value, it will return whether it is a valid spawn position coordinate or not
  • bool is_valid_spawn_position(Position pos): Given a Position, it will return whether it is a valid spawn position
  • std::vector<Position> get_all_valid_spawn_positions(): Returns all the valid spawn positions