Coins API Reference¶
Family dispatcher
¶
Coins substrate
¶
Native PettingZoo implementation of Melting Pot's Coins substrate.
CoinsConfig
dataclass
¶
Configuration for the native Coins substrate.
CoinsParallelEnv
¶
Bases: ParallelEnv[Agent, dict[str, ndarray], int]
PettingZoo ParallelEnv for the Coins substrate.
ascii_map: str
property
¶
The upstream-shaped ASCII map generated for the current episode.
parallel_env(render_mode: RenderMode = None, config: CoinsConfig | None = None, **config_overrides: Any) -> CoinsParallelEnv
¶
Create the native Coins ParallelEnv.
env(render_mode: RenderMode = None, **kwargs: Any)
¶
Create the native Coins AEC env.
generate_ascii_map(min_width: int, max_width: int, min_height: int, max_height: int, rng: random.Random | None = None) -> str
¶
Procedurally generate the upstream-shaped Coins ASCII map.