Skip to content

The Matrix API Reference

Family dispatcher

The Matrix substrate family entrypoints.

parallel_env(sub_substrate: str = 'prisoners_dilemma_repeated', **kwargs: Any)

Create a native PettingZoo ParallelEnv for a Matrix-game variant.

env(sub_substrate: str = 'prisoners_dilemma_repeated', **kwargs: Any)

Create a PettingZoo AEC environment for a Matrix-game variant.

Prisoner's Dilemma Repeated

Native Prisoner's Dilemma in the Matrix, repeated variant.

PrisonersDilemmaRepeatedConfig dataclass

Bases: MatrixGameConfig

Configuration for Prisoner's Dilemma in the Matrix, repeated.

PrisonersDilemmaRepeatedParallelEnv

Bases: MatrixGameParallelEnv

PettingZoo ParallelEnv for Prisoner's Dilemma in the Matrix repeated.

parallel_env(render_mode: RenderMode = None, config: PrisonersDilemmaRepeatedConfig | None = None, **config_overrides: Any) -> PrisonersDilemmaRepeatedParallelEnv

Create the native Prisoner's Dilemma repeated ParallelEnv.

env(render_mode: RenderMode = None, **kwargs: Any)

Create the native Prisoner's Dilemma repeated AEC env.

Prisoner's Dilemma Arena

Native Prisoner's Dilemma in the Matrix, arena variant.

Chicken Repeated

Native Chicken in the Matrix, repeated variant.

Chicken Arena

Native Chicken in the Matrix, arena variant.

Stag Hunt Repeated

Native Stag Hunt in the Matrix, repeated variant.

Stag Hunt Arena

Native Stag Hunt in the Matrix, arena variant.

Bach or Stravinsky Repeated

Native Bach or Stravinsky in the Matrix, repeated variant.

Bach or Stravinsky Arena

Native Bach or Stravinsky in the Matrix, arena variant.

Pure Coordination Repeated

Native Pure Coordination in the Matrix, repeated variant.

Pure Coordination Arena

Native Pure Coordination in the Matrix, arena variant.

Rationalizable Coordination Repeated

Native Rationalizable Coordination in the Matrix, repeated variant.

Rationalizable Coordination Arena

Native Rationalizable Coordination in the Matrix, arena variant.

Running with Scissors Repeated

Native Running with Scissors in the Matrix, repeated variant.

Running with Scissors One Shot

Native Running with Scissors in the Matrix, one-shot variant.

Running with Scissors Arena

Native Running with Scissors in the Matrix, arena variant.