Implement a registry function/class for Jumanji environments to avoid creating numerous configuration files for each scenario (e.g. for RWARE and LBF). In this function, we check the existence of the given scenario and create the corresponding attributes to initialise the environment class.
Proposal
For the selected environment-scenario pair, we first check the existence of the scenario in an initialized data structure (dictionary or list) of valid scenarios containing all possible correct combinations. This data structure will be automatically initialised for the given environment, making it easier to extract attribute names and values to create the env object.
Testing
Test functionality when creating the selected environment-scenario pair with most scenarios.
Definition of done
This function can be considered complete after being tested on most of the valid scenarios that can be initialised for RWARE and LBF at present.
Mandatory checklist before making a PR
[x] The success criteria laid down in “Definition of done” are met.
[x] Code is documented - docstrings for methods and classes, static types for arguments.
Feature
Implement a registry function/class for Jumanji environments to avoid creating numerous configuration files for each scenario (e.g. for RWARE and LBF). In this function, we check the existence of the given scenario and create the corresponding attributes to initialise the environment class.
Proposal
For the selected environment-scenario pair, we first check the existence of the scenario in an initialized data structure (dictionary or list) of valid scenarios containing all possible correct combinations. This data structure will be automatically initialised for the given environment, making it easier to extract attribute names and values to create the env object.
Testing
Test functionality when creating the selected environment-scenario pair with most scenarios.
Definition of done
This function can be considered complete after being tested on most of the valid scenarios that can be initialised for RWARE and LBF at present.
Mandatory checklist before making a PR
Links / references / screenshots