Introduction to PettingZoo

Head back to contents

This work has been translated from Korean to English using Claude 4.5 Sonnet.

PettingZoo Documentation

Brief Introduction to PettingZoo

PettingZoo is a Python library that facilitates General Multi-Agent Reinforcement Learning (MARL) simulations.

PettingZoo consists of two main APIs:

  • AEC API: Helps implement environments with turns between agents, similar to board games.
    • Environments with turns are called Agent Environment Cycle (AEC) environments.
  • Parallel API: All agents act simultaneously within a single time step.
    • These are called Parallel environments, referring to parallel/concurrent execution.

There exist AEC-to-Parallel and Parallel-to-AEC converters that allow transformation between the two APIs. However, when developing for the first time, it’s recommended to focus on one API without worrying too much about conversion.




Enjoy Reading This Article?

Here are some more articles you might like to read next:

  • mutual Signs MOU with Grepp for Online Proctoring Security
  • mutual, 온라인 시험 감독 보안 관련 그렙과 MOU 체결
  • AttentionX Cohort VII Application
  • Market Strategist — mutual
  • 마켓 전략가 — mutual