"""CoGrid: Multi-agent grid-world environments for reinforcement learning."""

__version__ = "0.2.2"


def make(environment_id: str, **kwargs):
    """Create a pre-registered CoGrid environment by name.

    Triggers registration of all built-in environments on first call.
    """
    import cogrid.envs  # noqa: F401 -- trigger registration
    from cogrid.envs import registry

    return registry.make(environment_id, **kwargs)
