pettingzoo — Easy Examples
Multi-agent RL environments API
Getting started with pettingzoo
Installation and basic usage of pettingzoo.
python
# Install: pip install pettingzoo import pettingzoo # Basic pettingzoo usage print(f"Using pettingzoo") # See documentation for detailed examples
Expected Output
# Expected output shown below # (Run locally with: pettingzoo)
pettingzoo is a third-party package. Multi-agent RL environments API. Install with: pip install pettingzoo
Common pettingzoo operations
Frequently used features of pettingzoo.
python
# Install: pip install pettingzoo import pettingzoo # Common pettingzoo patterns print(f"pettingzoo version: {pettingzoo.__version__}")
These are the most commonly used features of pettingzoo in everyday development.
Want to try these examples interactively?
Open Easy Playground