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

Introduce base environment class #7

Open
smarianimore opened this issue Jun 9, 2023 · 0 comments
Open

Introduce base environment class #7

smarianimore opened this issue Jun 9, 2023 · 0 comments

Comments

@smarianimore
Copy link
Owner

The single and multi agent environments actually share a great deal of their source code, as it is basically the implementation of a grid world.
However, they cannot collapse to a single class as they are meant to be compatible with Gymnasium (single agent) and PettingZoo (multi-agent).
Nevertheless, a base class could be introduced to deal with much of the code, to be "wrapped" inside two "facade" classes, one for Gymnasium and one for PettingZoo, simply adapting the interface and provided the needed additional stuff

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

No branches or pull requests

1 participant