pub fn scenario_instance(
grid: Grid,
entries: &[ScenarioEntry],
agents: usize,
) -> Result<Instance<Grid>, ScenarioError>Expand description
Builds an instance from the first agents entries of a scenario on grid.
§Errors
ScenarioError::MapSizeif an entry was made for a map of another size;ScenarioError::TooFewEntriesif the scenario has fewer thanagentsentries;ScenarioError::BlockedCellif an entry’s start or goal is blocked;ScenarioError::InstanceifInstance::newrejects the agents, for example for a shared goal.