Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add registration functions for envs and intelligence backends #115

Merged

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
Member

@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
Member

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
13 checks passed
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.

None yet

2 participants