From a814924238c667e73c860bc22cb4b8a21521060f Mon Sep 17 00:00:00 2001 From: Marian Andrecki Date: Thu, 28 Mar 2019 21:05:07 +0000 Subject: [PATCH] Aliased Pixelcopter class (as PixelCopter) so it can be made via gym (gym.make('PixelCopter-v0')). --- ple/games/pixelcopter.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ple/games/pixelcopter.py b/ple/games/pixelcopter.py index 773bb11..753491d 100644 --- a/ple/games/pixelcopter.py +++ b/ple/games/pixelcopter.py @@ -326,6 +326,9 @@ def step(self, dt): self.block_group.draw(self.screen) self.terrain_group.draw(self.screen) +# alias name for class so the env can be made by gym +PixelCopter = Pixelcopter + if __name__ == "__main__": import numpy as np