toybox-rs / Toybox

The Machine Learning Toybox for testing the behavior of autonomous agents.
http://toybox.rs
27 stars 12 forks source link

have a generic subclass of Gym Environment #186

Open jjfiv opened 3 years ago

jjfiv commented 3 years ago

This code suggests that we could have one class (like our ToyboxBaseEnv) that allows us to register any game by name, https://github.com/openai/gym/blob/master/gym/envs/registration.py

gym.make("toybox", game="breakout")

This would allow seamless interop with newer, unpublished ctoybox backends with only-locally-implemented games.

kclary commented 3 years ago

ALL has a generic class: https://github.com/cpnota/autonomous-learning-library/blob/01836e06cceccb7e9da188272e0ec3aa64970956/all/environments/gym.py#L10