Skip to content

Add registration functions for envs and intelligence backends#115

Merged
elliottower merged 3 commits intoFarama-Foundation:mainfrom
mutualismai:Add-registration-functions
Dec 19, 2023
Merged

Add registration functions for envs and intelligence backends#115
elliottower merged 3 commits intoFarama-Foundation:mainfrom
mutualismai:Add-registration-functions

Conversation

@edmundmills
Copy link
Contributor

This PR adds registration functions so that people can use Arena.from_config with custom environments and intelligence backends without needing to modify the ENVIRONMENT_REGISTRY or BACKEND_REGISTRY dicts.

Copy link
Contributor

@elliottower elliottower left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks for the contribution. Definitely a cleaner way to do things.

@elliottower
Copy link
Contributor

Is there any chance you could update the tests to run this registration process for all of the built in environments? I see the test_environments file has been updated but as far as I can tell it only does it for the chess environment. They are tested in the arena tests as well but probably good to have a more specific test about this registration component for each env.

@edmundmills
Copy link
Contributor Author

Sweet! Thanks for developing and maintaining this--I hope to make additional helpful contributions as I use it.

I've added tests for loading each of the builtin environments.

@elliottower elliottower merged commit 2dcaa08 into Farama-Foundation:main Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants