This repository is no longer maintained, as Gym is not longer maintained and all future maintenance of it will occur in the replacing Gymnasium library. You can contribute Gymnasium examples to the Gymnasium repository and docs directly if you would like to. If you'd like to learn more about the transition from Gym to Gymnasium, you can read more about it here.
Some simple examples of Gym environments and wrappers. For some explanations of these examples, see the Gym documentation.
This repository hosts the examples that are shown on the environment creation documentation.
GridWorldEnv
: Simplistic implementation of gridworld environment
This repository hosts the examples that are shown on wrapper documentation.
ClipReward
: ARewardWrapper
that clips immediate rewards to a valid rangeDiscreteActions
: AnActionWrapper
that restricts the action space to a finite subsetRelativePosition
: AnObservationWrapper
that computes the relative position between an agent and a targetReacherRewardWrapper
: Allow us to weight the reward terms for the reacher environment
If you would like to contribute, follow these steps:
- Fork this repository
- Clone your fork
- Set up pre-commit via
pre-commit install
PRs may require accompanying PRs in the documentation repo.