Environments¶
Every scenario is a PettingZoo ParallelEnv created with gridhunt.make(env_id). Any setting can be overridden there, for example max_steps, reward_mode="team" or observation_mode; see custom scenarios to build your own.
| Scenario | Environment ID | Grid | Agents | What it tests |
|---|---|---|---|---|
| Classic stag hunt | GridHunt-ClassicStag-v0 |
5×5 | 2 | Choosing to cooperate |
| Toxic stag | GridHunt-ToxicStag-v0 |
7×7 | 3 | Acting on one teammate's private information |
| Specialists | GridHunt-Specialists-v0 |
10×10 | 2 | Complementary abilities against fleeing prey |
| Military | GridHunt-Military-v0 |
10×10 | 2 | Splitting sensing from acting, on terrain that changes every episode |
| Raid | GridHunt-Raid-v0 |
12×12 | 3 | Taking shared risks |
| Pig chase | GridHunt-PigChase-v0 |
9×9 | 2 | Learning and keeping one joint plan |
| Land and sea | GridHunt-LandAndSea-v0 |
10×10 | 2 | Division of labour by territory |
| Swarm | GridHunt-Swarm-v0 |
23×23 | 10 | Scale without roles |
Each page lists the agents, prey and terrain exactly as registered, and the benchmark results for that scenario.
What each scenario tests¶
Each scenario isolates one reason the agents need each other, on dynamics that are otherwise the same, so a difference between scenarios can be traced to that reason. Every way the agents differ (capture power, speed, vision, terrain access, hidden information) is a constructor setting rather than part of a fixed game, so each dependence can be made stronger or weaker from the same code (the benchmark's variants do this for three of them). The same scenarios can be played by people alongside trained agents with the human-agent teaming toolkit.
The middle column is from the interdependence ablation: the share of its score a scripted team loses when that agent stands still. The scripted team sees the true state, so this counts what an agent is needed to capture, not what it is needed to see: the UAV in Military and the toxicity-aware hunter in Toxic stag matter for their information, which the benchmark's _full_vision and _blind variants measure.
| Scenario | Removing one agent costs | Vary it with |
|---|---|---|
| Classic stag hunt | predator_0 75%, predator_1 74% |
reward_mode, prey rewards (prey=) |
| Toxic stag | predator_0 2%, predator_1 1%, predator_2 0% |
toxic_probability, toxic_lifetime, which hunters are toxicity_aware |
| Specialists | bruiser_0 69%, scout_0 10% |
vision radius, speeds, communication=k |
| Military | ground_vehicle_0 100%, uav_0 0% |
terrain_config, vision radius, immune_to_terrain |
| Raid | any one: 46% | trap probabilities and penalties, rewards |
| Pig chase | predator_0 100%, predator_1 100% |
the maze (terrain_config), max_steps |
| Land and sea | land_predator 98%, sea_predator 96% |
the shore (terrain_config), restricted_terrains |
| Swarm | any one: 0–5% | numbers of hunters and prey, overcrowding penalties |