ale-py 0.10.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ale_py-0.10.1/CMakeLists.txt +71 -0
- ale_py-0.10.1/LICENSE.md +361 -0
- ale_py-0.10.1/MANIFEST.in +7 -0
- ale_py-0.10.1/PKG-INFO +174 -0
- ale_py-0.10.1/README.md +141 -0
- ale_py-0.10.1/ale_py.egg-info/PKG-INFO +174 -0
- ale_py-0.10.1/ale_py.egg-info/SOURCES.txt +388 -0
- ale_py-0.10.1/ale_py.egg-info/dependency_links.txt +1 -0
- ale_py-0.10.1/ale_py.egg-info/requires.txt +14 -0
- ale_py-0.10.1/ale_py.egg-info/top_level.txt +1 -0
- ale_py-0.10.1/cmake/ParseVersion.cmake +74 -0
- ale_py-0.10.1/cmake/ale-config.cmake.in +14 -0
- ale_py-0.10.1/cmake/custom-triplets/arm64-osx-mixed.cmake +16 -0
- ale_py-0.10.1/cmake/custom-triplets/universal2-osx-mixed.cmake +16 -0
- ale_py-0.10.1/cmake/custom-triplets/x64-linux-mixed.cmake +11 -0
- ale_py-0.10.1/cmake/custom-triplets/x64-osx-mixed.cmake +16 -0
- ale_py-0.10.1/pyproject.toml +101 -0
- ale_py-0.10.1/scripts/download_unpack_roms.sh +20 -0
- ale_py-0.10.1/setup.cfg +4 -0
- ale_py-0.10.1/setup.py +144 -0
- ale_py-0.10.1/src/ale/CMakeLists.txt +113 -0
- ale_py-0.10.1/src/ale/ale_interface.cpp +399 -0
- ale_py-0.10.1/src/ale/ale_interface.hpp +219 -0
- ale_py-0.10.1/src/ale/common/CMakeLists.txt +14 -0
- ale_py-0.10.1/src/ale/common/ColourPalette.cpp +213 -0
- ale_py-0.10.1/src/ale/common/ColourPalette.hpp +83 -0
- ale_py-0.10.1/src/ale/common/Constants.cpp +73 -0
- ale_py-0.10.1/src/ale/common/Constants.h +96 -0
- ale_py-0.10.1/src/ale/common/DynamicLoad.cpp +54 -0
- ale_py-0.10.1/src/ale/common/DynamicLoad.hpp +26 -0
- ale_py-0.10.1/src/ale/common/Log.cpp +18 -0
- ale_py-0.10.1/src/ale/common/Log.hpp +33 -0
- ale_py-0.10.1/src/ale/common/Palettes.hpp +219 -0
- ale_py-0.10.1/src/ale/common/SDL2.cpp +274 -0
- ale_py-0.10.1/src/ale/common/SDL2.hpp +189 -0
- ale_py-0.10.1/src/ale/common/ScreenExporter.cpp +193 -0
- ale_py-0.10.1/src/ale/common/ScreenExporter.hpp +58 -0
- ale_py-0.10.1/src/ale/common/ScreenSDL.cpp +226 -0
- ale_py-0.10.1/src/ale/common/ScreenSDL.hpp +74 -0
- ale_py-0.10.1/src/ale/common/SoundExporter.cpp +65 -0
- ale_py-0.10.1/src/ale/common/SoundExporter.hpp +70 -0
- ale_py-0.10.1/src/ale/common/SoundNull.cxx +80 -0
- ale_py-0.10.1/src/ale/common/SoundNull.hxx +171 -0
- ale_py-0.10.1/src/ale/common/SoundSDL.cxx +591 -0
- ale_py-0.10.1/src/ale/common/SoundSDL.hxx +304 -0
- ale_py-0.10.1/src/ale/emucore/CMakeLists.txt +50 -0
- ale_py-0.10.1/src/ale/emucore/Cart.cxx +479 -0
- ale_py-0.10.1/src/ale/emucore/Cart.hxx +217 -0
- ale_py-0.10.1/src/ale/emucore/Cart0840.cxx +109 -0
- ale_py-0.10.1/src/ale/emucore/Cart0840.hxx +151 -0
- ale_py-0.10.1/src/ale/emucore/Cart2K.cxx +170 -0
- ale_py-0.10.1/src/ale/emucore/Cart2K.hxx +157 -0
- ale_py-0.10.1/src/ale/emucore/Cart3E.cxx +311 -0
- ale_py-0.10.1/src/ale/emucore/Cart3E.hxx +195 -0
- ale_py-0.10.1/src/ale/emucore/Cart3F.cxx +249 -0
- ale_py-0.10.1/src/ale/emucore/Cart3F.hxx +169 -0
- ale_py-0.10.1/src/ale/emucore/Cart4A50.cxx +109 -0
- ale_py-0.10.1/src/ale/emucore/Cart4A50.hxx +152 -0
- ale_py-0.10.1/src/ale/emucore/Cart4K.cxx +170 -0
- ale_py-0.10.1/src/ale/emucore/Cart4K.hxx +156 -0
- ale_py-0.10.1/src/ale/emucore/CartAR.cxx +600 -0
- ale_py-0.10.1/src/ale/emucore/CartAR.hxx +219 -0
- ale_py-0.10.1/src/ale/emucore/CartCV.cxx +225 -0
- ale_py-0.10.1/src/ale/emucore/CartCV.hxx +166 -0
- ale_py-0.10.1/src/ale/emucore/CartDPC.cxx +617 -0
- ale_py-0.10.1/src/ale/emucore/CartDPC.hxx +209 -0
- ale_py-0.10.1/src/ale/emucore/CartE0.cxx +293 -0
- ale_py-0.10.1/src/ale/emucore/CartE0.hxx +186 -0
- ale_py-0.10.1/src/ale/emucore/CartE7.cxx +325 -0
- ale_py-0.10.1/src/ale/emucore/CartE7.hxx +195 -0
- ale_py-0.10.1/src/ale/emucore/CartF4.cxx +215 -0
- ale_py-0.10.1/src/ale/emucore/CartF4.hxx +159 -0
- ale_py-0.10.1/src/ale/emucore/CartF4SC.cxx +251 -0
- ale_py-0.10.1/src/ale/emucore/CartF4SC.hxx +162 -0
- ale_py-0.10.1/src/ale/emucore/CartF6.cxx +256 -0
- ale_py-0.10.1/src/ale/emucore/CartF6.hxx +159 -0
- ale_py-0.10.1/src/ale/emucore/CartF6SC.cxx +296 -0
- ale_py-0.10.1/src/ale/emucore/CartF6SC.hxx +162 -0
- ale_py-0.10.1/src/ale/emucore/CartF8.cxx +241 -0
- ale_py-0.10.1/src/ale/emucore/CartF8.hxx +163 -0
- ale_py-0.10.1/src/ale/emucore/CartF8SC.cxx +278 -0
- ale_py-0.10.1/src/ale/emucore/CartF8SC.hxx +162 -0
- ale_py-0.10.1/src/ale/emucore/CartFASC.cxx +284 -0
- ale_py-0.10.1/src/ale/emucore/CartFASC.hxx +162 -0
- ale_py-0.10.1/src/ale/emucore/CartFE.cxx +169 -0
- ale_py-0.10.1/src/ale/emucore/CartFE.hxx +168 -0
- ale_py-0.10.1/src/ale/emucore/CartMB.cxx +221 -0
- ale_py-0.10.1/src/ale/emucore/CartMB.hxx +166 -0
- ale_py-0.10.1/src/ale/emucore/CartMC.cxx +324 -0
- ale_py-0.10.1/src/ale/emucore/CartMC.hxx +272 -0
- ale_py-0.10.1/src/ale/emucore/CartUA.cxx +248 -0
- ale_py-0.10.1/src/ale/emucore/CartUA.hxx +163 -0
- ale_py-0.10.1/src/ale/emucore/Console.cxx +228 -0
- ale_py-0.10.1/src/ale/emucore/Console.hxx +187 -0
- ale_py-0.10.1/src/ale/emucore/Control.cxx +67 -0
- ale_py-0.10.1/src/ale/emucore/Control.hxx +183 -0
- ale_py-0.10.1/src/ale/emucore/DefProps.hxx +2698 -0
- ale_py-0.10.1/src/ale/emucore/Deserializer.cxx +88 -0
- ale_py-0.10.1/src/ale/emucore/Deserializer.hxx +87 -0
- ale_py-0.10.1/src/ale/emucore/Device.cxx +42 -0
- ale_py-0.10.1/src/ale/emucore/Device.hxx +125 -0
- ale_py-0.10.1/src/ale/emucore/Event.cxx +68 -0
- ale_py-0.10.1/src/ale/emucore/Event.hxx +101 -0
- ale_py-0.10.1/src/ale/emucore/Joystick.cxx +81 -0
- ale_py-0.10.1/src/ale/emucore/Joystick.hxx +81 -0
- ale_py-0.10.1/src/ale/emucore/M6502.cxx +351 -0
- ale_py-0.10.1/src/ale/emucore/M6502.hxx +267 -0
- ale_py-0.10.1/src/ale/emucore/M6502.m4 +1870 -0
- ale_py-0.10.1/src/ale/emucore/M6502Hi.cxx +283 -0
- ale_py-0.10.1/src/ale/emucore/M6502Hi.hxx +144 -0
- ale_py-0.10.1/src/ale/emucore/M6502Hi.ins +4430 -0
- ale_py-0.10.1/src/ale/emucore/M6502Hi.m4 +313 -0
- ale_py-0.10.1/src/ale/emucore/M6502Low.cxx +258 -0
- ale_py-0.10.1/src/ale/emucore/M6502Low.hxx +130 -0
- ale_py-0.10.1/src/ale/emucore/M6502Low.ins +4372 -0
- ale_py-0.10.1/src/ale/emucore/M6502Low.m4 +284 -0
- ale_py-0.10.1/src/ale/emucore/M6532.cxx +390 -0
- ale_py-0.10.1/src/ale/emucore/M6532.hxx +159 -0
- ale_py-0.10.1/src/ale/emucore/MD5.cxx +352 -0
- ale_py-0.10.1/src/ale/emucore/MD5.hxx +41 -0
- ale_py-0.10.1/src/ale/emucore/MediaSrc.cxx +49 -0
- ale_py-0.10.1/src/ale/emucore/MediaSrc.hxx +119 -0
- ale_py-0.10.1/src/ale/emucore/NullDev.cxx +81 -0
- ale_py-0.10.1/src/ale/emucore/NullDev.hxx +114 -0
- ale_py-0.10.1/src/ale/emucore/OSystem.cxx +322 -0
- ale_py-0.10.1/src/ale/emucore/OSystem.hxx +220 -0
- ale_py-0.10.1/src/ale/emucore/Paddles.cxx +117 -0
- ale_py-0.10.1/src/ale/emucore/Paddles.hxx +88 -0
- ale_py-0.10.1/src/ale/emucore/Props.cxx +338 -0
- ale_py-0.10.1/src/ale/emucore/Props.hxx +187 -0
- ale_py-0.10.1/src/ale/emucore/PropsSet.cxx +203 -0
- ale_py-0.10.1/src/ale/emucore/PropsSet.hxx +139 -0
- ale_py-0.10.1/src/ale/emucore/Random.cxx +132 -0
- ale_py-0.10.1/src/ale/emucore/Random.hxx +94 -0
- ale_py-0.10.1/src/ale/emucore/Screen.hxx +40 -0
- ale_py-0.10.1/src/ale/emucore/Serializer.cxx +75 -0
- ale_py-0.10.1/src/ale/emucore/Serializer.hxx +103 -0
- ale_py-0.10.1/src/ale/emucore/Settings.cxx +459 -0
- ale_py-0.10.1/src/ale/emucore/Settings.hxx +218 -0
- ale_py-0.10.1/src/ale/emucore/Sound.hxx +171 -0
- ale_py-0.10.1/src/ale/emucore/Switches.cxx +116 -0
- ale_py-0.10.1/src/ale/emucore/Switches.hxx +73 -0
- ale_py-0.10.1/src/ale/emucore/System.cxx +315 -0
- ale_py-0.10.1/src/ale/emucore/System.hxx +436 -0
- ale_py-0.10.1/src/ale/emucore/TIA.cxx +3564 -0
- ale_py-0.10.1/src/ale/emucore/TIA.hxx +554 -0
- ale_py-0.10.1/src/ale/emucore/TIASnd.cxx +390 -0
- ale_py-0.10.1/src/ale/emucore/TIASnd.hxx +157 -0
- ale_py-0.10.1/src/ale/emucore/stella.pro +15478 -0
- ale_py-0.10.1/src/ale/environment/CMakeLists.txt +7 -0
- ale_py-0.10.1/src/ale/environment/ale_ram.hpp +65 -0
- ale_py-0.10.1/src/ale/environment/ale_screen.hpp +111 -0
- ale_py-0.10.1/src/ale/environment/ale_state.cpp +500 -0
- ale_py-0.10.1/src/ale/environment/ale_state.hpp +149 -0
- ale_py-0.10.1/src/ale/environment/phosphor_blend.cpp +124 -0
- ale_py-0.10.1/src/ale/environment/phosphor_blend.hpp +49 -0
- ale_py-0.10.1/src/ale/environment/stella_environment.cpp +336 -0
- ale_py-0.10.1/src/ale/environment/stella_environment.hpp +183 -0
- ale_py-0.10.1/src/ale/environment/stella_environment_wrapper.cpp +29 -0
- ale_py-0.10.1/src/ale/environment/stella_environment_wrapper.hpp +44 -0
- ale_py-0.10.1/src/ale/games/CMakeLists.txt +7 -0
- ale_py-0.10.1/src/ale/games/RomSettings.cpp +86 -0
- ale_py-0.10.1/src/ale/games/RomSettings.hpp +137 -0
- ale_py-0.10.1/src/ale/games/RomUtils.cpp +120 -0
- ale_py-0.10.1/src/ale/games/RomUtils.hpp +40 -0
- ale_py-0.10.1/src/ale/games/Roms.cpp +249 -0
- ale_py-0.10.1/src/ale/games/Roms.hpp +30 -0
- ale_py-0.10.1/src/ale/games/supported/Adventure.cpp +159 -0
- ale_py-0.10.1/src/ale/games/supported/Adventure.hpp +89 -0
- ale_py-0.10.1/src/ale/games/supported/AirRaid.cpp +119 -0
- ale_py-0.10.1/src/ale/games/supported/AirRaid.hpp +77 -0
- ale_py-0.10.1/src/ale/games/supported/Alien.cpp +162 -0
- ale_py-0.10.1/src/ale/games/supported/Alien.hpp +100 -0
- ale_py-0.10.1/src/ale/games/supported/Amidar.cpp +111 -0
- ale_py-0.10.1/src/ale/games/supported/Amidar.hpp +85 -0
- ale_py-0.10.1/src/ale/games/supported/Assault.cpp +100 -0
- ale_py-0.10.1/src/ale/games/supported/Assault.hpp +81 -0
- ale_py-0.10.1/src/ale/games/supported/Asterix.cpp +111 -0
- ale_py-0.10.1/src/ale/games/supported/Asterix.hpp +84 -0
- ale_py-0.10.1/src/ale/games/supported/Asteroids.cpp +149 -0
- ale_py-0.10.1/src/ale/games/supported/Asteroids.hpp +97 -0
- ale_py-0.10.1/src/ale/games/supported/Atlantis.cpp +139 -0
- ale_py-0.10.1/src/ale/games/supported/Atlantis.hpp +93 -0
- ale_py-0.10.1/src/ale/games/supported/Atlantis2.cpp +103 -0
- ale_py-0.10.1/src/ale/games/supported/Atlantis2.hpp +84 -0
- ale_py-0.10.1/src/ale/games/supported/Backgammon.cpp +181 -0
- ale_py-0.10.1/src/ale/games/supported/Backgammon.hpp +78 -0
- ale_py-0.10.1/src/ale/games/supported/BankHeist.cpp +147 -0
- ale_py-0.10.1/src/ale/games/supported/BankHeist.hpp +97 -0
- ale_py-0.10.1/src/ale/games/supported/BasicMath.cpp +117 -0
- ale_py-0.10.1/src/ale/games/supported/BasicMath.hpp +73 -0
- ale_py-0.10.1/src/ale/games/supported/BattleZone.cpp +158 -0
- ale_py-0.10.1/src/ale/games/supported/BattleZone.hpp +93 -0
- ale_py-0.10.1/src/ale/games/supported/BeamRider.cpp +121 -0
- ale_py-0.10.1/src/ale/games/supported/BeamRider.hpp +87 -0
- ale_py-0.10.1/src/ale/games/supported/Berzerk.cpp +150 -0
- ale_py-0.10.1/src/ale/games/supported/Berzerk.hpp +93 -0
- ale_py-0.10.1/src/ale/games/supported/Blackjack.cpp +100 -0
- ale_py-0.10.1/src/ale/games/supported/Blackjack.hpp +70 -0
- ale_py-0.10.1/src/ale/games/supported/Bowling.cpp +110 -0
- ale_py-0.10.1/src/ale/games/supported/Bowling.hpp +97 -0
- ale_py-0.10.1/src/ale/games/supported/Boxing.cpp +112 -0
- ale_py-0.10.1/src/ale/games/supported/Boxing.hpp +84 -0
- ale_py-0.10.1/src/ale/games/supported/Breakout.cpp +139 -0
- ale_py-0.10.1/src/ale/games/supported/Breakout.hpp +99 -0
- ale_py-0.10.1/src/ale/games/supported/CMakeLists.txt +107 -0
- ale_py-0.10.1/src/ale/games/supported/Carnival.cpp +82 -0
- ale_py-0.10.1/src/ale/games/supported/Carnival.hpp +80 -0
- ale_py-0.10.1/src/ale/games/supported/Casino.cpp +158 -0
- ale_py-0.10.1/src/ale/games/supported/Casino.hpp +75 -0
- ale_py-0.10.1/src/ale/games/supported/Centipede.cpp +143 -0
- ale_py-0.10.1/src/ale/games/supported/Centipede.hpp +93 -0
- ale_py-0.10.1/src/ale/games/supported/ChopperCommand.cpp +158 -0
- ale_py-0.10.1/src/ale/games/supported/ChopperCommand.hpp +98 -0
- ale_py-0.10.1/src/ale/games/supported/CrazyClimber.cpp +146 -0
- ale_py-0.10.1/src/ale/games/supported/CrazyClimber.hpp +97 -0
- ale_py-0.10.1/src/ale/games/supported/Crossbow.cpp +131 -0
- ale_py-0.10.1/src/ale/games/supported/Crossbow.hpp +73 -0
- ale_py-0.10.1/src/ale/games/supported/DarkChambers.cpp +138 -0
- ale_py-0.10.1/src/ale/games/supported/DarkChambers.hpp +72 -0
- ale_py-0.10.1/src/ale/games/supported/Defender.cpp +153 -0
- ale_py-0.10.1/src/ale/games/supported/Defender.hpp +97 -0
- ale_py-0.10.1/src/ale/games/supported/DemonAttack.cpp +140 -0
- ale_py-0.10.1/src/ale/games/supported/DemonAttack.hpp +98 -0
- ale_py-0.10.1/src/ale/games/supported/DonkeyKong.cpp +99 -0
- ale_py-0.10.1/src/ale/games/supported/DonkeyKong.hpp +67 -0
- ale_py-0.10.1/src/ale/games/supported/DoubleDunk.cpp +198 -0
- ale_py-0.10.1/src/ale/games/supported/DoubleDunk.hpp +109 -0
- ale_py-0.10.1/src/ale/games/supported/Earthworld.cpp +99 -0
- ale_py-0.10.1/src/ale/games/supported/Earthworld.hpp +66 -0
- ale_py-0.10.1/src/ale/games/supported/ElevatorAction.cpp +116 -0
- ale_py-0.10.1/src/ale/games/supported/ElevatorAction.hpp +83 -0
- ale_py-0.10.1/src/ale/games/supported/Enduro.cpp +110 -0
- ale_py-0.10.1/src/ale/games/supported/Enduro.hpp +82 -0
- ale_py-0.10.1/src/ale/games/supported/Entombed.cpp +112 -0
- ale_py-0.10.1/src/ale/games/supported/Entombed.hpp +70 -0
- ale_py-0.10.1/src/ale/games/supported/Et.cpp +153 -0
- ale_py-0.10.1/src/ale/games/supported/Et.hpp +76 -0
- ale_py-0.10.1/src/ale/games/supported/FishingDerby.cpp +103 -0
- ale_py-0.10.1/src/ale/games/supported/FishingDerby.hpp +84 -0
- ale_py-0.10.1/src/ale/games/supported/FlagCapture.cpp +119 -0
- ale_py-0.10.1/src/ale/games/supported/FlagCapture.hpp +71 -0
- ale_py-0.10.1/src/ale/games/supported/Freeway.cpp +121 -0
- ale_py-0.10.1/src/ale/games/supported/Freeway.hpp +97 -0
- ale_py-0.10.1/src/ale/games/supported/Frogger.cpp +120 -0
- ale_py-0.10.1/src/ale/games/supported/Frogger.hpp +74 -0
- ale_py-0.10.1/src/ale/games/supported/Frostbite.cpp +142 -0
- ale_py-0.10.1/src/ale/games/supported/Frostbite.hpp +93 -0
- ale_py-0.10.1/src/ale/games/supported/Galaxian.cpp +137 -0
- ale_py-0.10.1/src/ale/games/supported/Galaxian.hpp +97 -0
- ale_py-0.10.1/src/ale/games/supported/Gopher.cpp +140 -0
- ale_py-0.10.1/src/ale/games/supported/Gopher.hpp +100 -0
- ale_py-0.10.1/src/ale/games/supported/Gravitar.cpp +168 -0
- ale_py-0.10.1/src/ale/games/supported/Gravitar.hpp +96 -0
- ale_py-0.10.1/src/ale/games/supported/Hangman.cpp +220 -0
- ale_py-0.10.1/src/ale/games/supported/Hangman.hpp +88 -0
- ale_py-0.10.1/src/ale/games/supported/HauntedHouse.cpp +148 -0
- ale_py-0.10.1/src/ale/games/supported/HauntedHouse.hpp +76 -0
- ale_py-0.10.1/src/ale/games/supported/Hero.cpp +141 -0
- ale_py-0.10.1/src/ale/games/supported/Hero.hpp +93 -0
- ale_py-0.10.1/src/ale/games/supported/HumanCannonball.cpp +136 -0
- ale_py-0.10.1/src/ale/games/supported/HumanCannonball.hpp +74 -0
- ale_py-0.10.1/src/ale/games/supported/IceHockey.cpp +129 -0
- ale_py-0.10.1/src/ale/games/supported/IceHockey.hpp +96 -0
- ale_py-0.10.1/src/ale/games/supported/JamesBond.cpp +148 -0
- ale_py-0.10.1/src/ale/games/supported/JamesBond.hpp +93 -0
- ale_py-0.10.1/src/ale/games/supported/JourneyEscape.cpp +105 -0
- ale_py-0.10.1/src/ale/games/supported/JourneyEscape.hpp +87 -0
- ale_py-0.10.1/src/ale/games/supported/Kaboom.cpp +85 -0
- ale_py-0.10.1/src/ale/games/supported/Kaboom.hpp +65 -0
- ale_py-0.10.1/src/ale/games/supported/Kangaroo.cpp +140 -0
- ale_py-0.10.1/src/ale/games/supported/Kangaroo.hpp +93 -0
- ale_py-0.10.1/src/ale/games/supported/KeystoneKapers.cpp +96 -0
- ale_py-0.10.1/src/ale/games/supported/KeystoneKapers.hpp +70 -0
- ale_py-0.10.1/src/ale/games/supported/Kingkong.cpp +129 -0
- ale_py-0.10.1/src/ale/games/supported/Kingkong.hpp +86 -0
- ale_py-0.10.1/src/ale/games/supported/Klax.cpp +166 -0
- ale_py-0.10.1/src/ale/games/supported/Klax.hpp +76 -0
- ale_py-0.10.1/src/ale/games/supported/Koolaid.cpp +84 -0
- ale_py-0.10.1/src/ale/games/supported/Koolaid.hpp +65 -0
- ale_py-0.10.1/src/ale/games/supported/Krull.cpp +115 -0
- ale_py-0.10.1/src/ale/games/supported/Krull.hpp +81 -0
- ale_py-0.10.1/src/ale/games/supported/KungFuMaster.cpp +109 -0
- ale_py-0.10.1/src/ale/games/supported/KungFuMaster.hpp +81 -0
- ale_py-0.10.1/src/ale/games/supported/LaserGates.cpp +97 -0
- ale_py-0.10.1/src/ale/games/supported/LaserGates.hpp +69 -0
- ale_py-0.10.1/src/ale/games/supported/LostLuggage.cpp +142 -0
- ale_py-0.10.1/src/ale/games/supported/LostLuggage.hpp +80 -0
- ale_py-0.10.1/src/ale/games/supported/MarioBros.cpp +137 -0
- ale_py-0.10.1/src/ale/games/supported/MarioBros.hpp +76 -0
- ale_py-0.10.1/src/ale/games/supported/MiniatureGolf.cpp +159 -0
- ale_py-0.10.1/src/ale/games/supported/MiniatureGolf.hpp +76 -0
- ale_py-0.10.1/src/ale/games/supported/MontezumaRevenge.cpp +116 -0
- ale_py-0.10.1/src/ale/games/supported/MontezumaRevenge.hpp +81 -0
- ale_py-0.10.1/src/ale/games/supported/MrDo.cpp +114 -0
- ale_py-0.10.1/src/ale/games/supported/MrDo.hpp +74 -0
- ale_py-0.10.1/src/ale/games/supported/MsPacman.cpp +154 -0
- ale_py-0.10.1/src/ale/games/supported/MsPacman.hpp +93 -0
- ale_py-0.10.1/src/ale/games/supported/NameThisGame.cpp +129 -0
- ale_py-0.10.1/src/ale/games/supported/NameThisGame.hpp +97 -0
- ale_py-0.10.1/src/ale/games/supported/Othello.cpp +143 -0
- ale_py-0.10.1/src/ale/games/supported/Othello.hpp +74 -0
- ale_py-0.10.1/src/ale/games/supported/Pacman.cpp +142 -0
- ale_py-0.10.1/src/ale/games/supported/Pacman.hpp +94 -0
- ale_py-0.10.1/src/ale/games/supported/Phoenix.cpp +106 -0
- ale_py-0.10.1/src/ale/games/supported/Phoenix.hpp +81 -0
- ale_py-0.10.1/src/ale/games/supported/Pitfall.cpp +120 -0
- ale_py-0.10.1/src/ale/games/supported/Pitfall.hpp +83 -0
- ale_py-0.10.1/src/ale/games/supported/Pitfall2.cpp +122 -0
- ale_py-0.10.1/src/ale/games/supported/Pitfall2.hpp +81 -0
- ale_py-0.10.1/src/ale/games/supported/Pong.cpp +118 -0
- ale_py-0.10.1/src/ale/games/supported/Pong.hpp +96 -0
- ale_py-0.10.1/src/ale/games/supported/Pooyan.cpp +129 -0
- ale_py-0.10.1/src/ale/games/supported/Pooyan.hpp +93 -0
- ale_py-0.10.1/src/ale/games/supported/PrivateEye.cpp +132 -0
- ale_py-0.10.1/src/ale/games/supported/PrivateEye.hpp +98 -0
- ale_py-0.10.1/src/ale/games/supported/QBert.cpp +124 -0
- ale_py-0.10.1/src/ale/games/supported/QBert.hpp +86 -0
- ale_py-0.10.1/src/ale/games/supported/RiverRaid.cpp +150 -0
- ale_py-0.10.1/src/ale/games/supported/RiverRaid.hpp +92 -0
- ale_py-0.10.1/src/ale/games/supported/RoadRunner.cpp +126 -0
- ale_py-0.10.1/src/ale/games/supported/RoadRunner.hpp +81 -0
- ale_py-0.10.1/src/ale/games/supported/RoboTank.cpp +117 -0
- ale_py-0.10.1/src/ale/games/supported/RoboTank.hpp +81 -0
- ale_py-0.10.1/src/ale/games/supported/Seaquest.cpp +115 -0
- ale_py-0.10.1/src/ale/games/supported/Seaquest.hpp +85 -0
- ale_py-0.10.1/src/ale/games/supported/SirLancelot.cpp +89 -0
- ale_py-0.10.1/src/ale/games/supported/SirLancelot.hpp +70 -0
- ale_py-0.10.1/src/ale/games/supported/Skiing.cpp +103 -0
- ale_py-0.10.1/src/ale/games/supported/Skiing.hpp +84 -0
- ale_py-0.10.1/src/ale/games/supported/Solaris.cpp +116 -0
- ale_py-0.10.1/src/ale/games/supported/Solaris.hpp +81 -0
- ale_py-0.10.1/src/ale/games/supported/SpaceInvaders.cpp +143 -0
- ale_py-0.10.1/src/ale/games/supported/SpaceInvaders.hpp +99 -0
- ale_py-0.10.1/src/ale/games/supported/SpaceWar.cpp +125 -0
- ale_py-0.10.1/src/ale/games/supported/SpaceWar.hpp +71 -0
- ale_py-0.10.1/src/ale/games/supported/StarGunner.cpp +164 -0
- ale_py-0.10.1/src/ale/games/supported/StarGunner.hpp +94 -0
- ale_py-0.10.1/src/ale/games/supported/Superman.cpp +110 -0
- ale_py-0.10.1/src/ale/games/supported/Superman.hpp +68 -0
- ale_py-0.10.1/src/ale/games/supported/Surround.cpp +133 -0
- ale_py-0.10.1/src/ale/games/supported/Surround.hpp +87 -0
- ale_py-0.10.1/src/ale/games/supported/Tennis.cpp +143 -0
- ale_py-0.10.1/src/ale/games/supported/Tennis.hpp +97 -0
- ale_py-0.10.1/src/ale/games/supported/Tetris.cpp +112 -0
- ale_py-0.10.1/src/ale/games/supported/Tetris.hpp +81 -0
- ale_py-0.10.1/src/ale/games/supported/TicTacToe3d.cpp +140 -0
- ale_py-0.10.1/src/ale/games/supported/TicTacToe3d.hpp +77 -0
- ale_py-0.10.1/src/ale/games/supported/TimePilot.cpp +114 -0
- ale_py-0.10.1/src/ale/games/supported/TimePilot.hpp +85 -0
- ale_py-0.10.1/src/ale/games/supported/Trondead.cpp +104 -0
- ale_py-0.10.1/src/ale/games/supported/Trondead.hpp +68 -0
- ale_py-0.10.1/src/ale/games/supported/Turmoil.cpp +119 -0
- ale_py-0.10.1/src/ale/games/supported/Turmoil.hpp +76 -0
- ale_py-0.10.1/src/ale/games/supported/Tutankham.cpp +132 -0
- ale_py-0.10.1/src/ale/games/supported/Tutankham.hpp +93 -0
- ale_py-0.10.1/src/ale/games/supported/UpNDown.cpp +111 -0
- ale_py-0.10.1/src/ale/games/supported/UpNDown.hpp +88 -0
- ale_py-0.10.1/src/ale/games/supported/Venture.cpp +121 -0
- ale_py-0.10.1/src/ale/games/supported/Venture.hpp +85 -0
- ale_py-0.10.1/src/ale/games/supported/VideoCheckers.cpp +145 -0
- ale_py-0.10.1/src/ale/games/supported/VideoCheckers.hpp +75 -0
- ale_py-0.10.1/src/ale/games/supported/VideoChess.cpp +163 -0
- ale_py-0.10.1/src/ale/games/supported/VideoChess.hpp +93 -0
- ale_py-0.10.1/src/ale/games/supported/VideoCube.cpp +277 -0
- ale_py-0.10.1/src/ale/games/supported/VideoCube.hpp +77 -0
- ale_py-0.10.1/src/ale/games/supported/VideoPinball.cpp +139 -0
- ale_py-0.10.1/src/ale/games/supported/VideoPinball.hpp +97 -0
- ale_py-0.10.1/src/ale/games/supported/WizardOfWor.cpp +119 -0
- ale_py-0.10.1/src/ale/games/supported/WizardOfWor.hpp +85 -0
- ale_py-0.10.1/src/ale/games/supported/WordZapper.cpp +157 -0
- ale_py-0.10.1/src/ale/games/supported/WordZapper.hpp +74 -0
- ale_py-0.10.1/src/ale/games/supported/YarsRevenge.cpp +149 -0
- ale_py-0.10.1/src/ale/games/supported/YarsRevenge.hpp +100 -0
- ale_py-0.10.1/src/ale/games/supported/Zaxxon.cpp +139 -0
- ale_py-0.10.1/src/ale/games/supported/Zaxxon.hpp +93 -0
- ale_py-0.10.1/src/ale/python/CMakeLists.txt +78 -0
- ale_py-0.10.1/src/ale/python/__init__.py +71 -0
- ale_py-0.10.1/src/ale/python/__init__.pyi +169 -0
- ale_py-0.10.1/src/ale/python/ale_python_interface.cpp +192 -0
- ale_py-0.10.1/src/ale/python/ale_python_interface.hpp +205 -0
- ale_py-0.10.1/src/ale/python/env.py +464 -0
- ale_py-0.10.1/src/ale/python/py.typed +0 -0
- ale_py-0.10.1/src/ale/python/registration.py +201 -0
- ale_py-0.10.1/src/ale/python/roms/__init__.py +67 -0
- ale_py-0.10.1/src/ale/python/roms/md5.json +110 -0
- ale_py-0.10.1/src/ale/python/roms/tetris.bin +0 -0
- ale_py-0.10.1/src/ale/version.hpp.in +14 -0
- ale_py-0.10.1/vcpkg.json +18 -0
- ale_py-0.10.1/version.txt +1 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
cmake_minimum_required (VERSION 3.14)
|
|
2
|
+
|
|
3
|
+
# Build the C++ shared library
|
|
4
|
+
option(BUILD_CPP_LIB "Build C++ Interface" ON)
|
|
5
|
+
|
|
6
|
+
# Build the native Python bindings using pybind11
|
|
7
|
+
option(BUILD_PYTHON_LIB "Build Python Interface" ON)
|
|
8
|
+
|
|
9
|
+
# Enable SDL for screen and audio support
|
|
10
|
+
option(SDL_SUPPORT "Enable SDL support" OFF)
|
|
11
|
+
# Append VCPKG manifest feature
|
|
12
|
+
if(SDL_SUPPORT)
|
|
13
|
+
list(APPEND VCPKG_MANIFEST_FEATURES "sdl")
|
|
14
|
+
endif()
|
|
15
|
+
|
|
16
|
+
# Set cmake module path
|
|
17
|
+
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
|
|
18
|
+
|
|
19
|
+
# Overlay VCPKG custom triplets
|
|
20
|
+
if(NOT DEFINED VCPKG_OVERLAY_TRIPLETS)
|
|
21
|
+
set(VCPKG_OVERLAY_TRIPLETS
|
|
22
|
+
"${CMAKE_MODULE_PATH}/custom-triplets"
|
|
23
|
+
CACHE STRING "")
|
|
24
|
+
endif()
|
|
25
|
+
|
|
26
|
+
# Discover VCPKG default triplet
|
|
27
|
+
if(DEFINED ENV{VCPKG_DEFAULT_TRIPLET} AND NOT DEFINED VCPKG_TARGET_TRIPLET)
|
|
28
|
+
set(VCPKG_TARGET_TRIPLET
|
|
29
|
+
"$ENV{VCPKG_DEFAULT_TRIPLET}"
|
|
30
|
+
CACHE STRING "")
|
|
31
|
+
endif()
|
|
32
|
+
|
|
33
|
+
# Discover VCPKG toolchain
|
|
34
|
+
if (NOT DEFINED CMAKE_TOOLCHAIN_FILE)
|
|
35
|
+
# VCPKG_ROOT is what Microsoft recommends,
|
|
36
|
+
# VCPKG_INSTALLATION_ROOT is what's defined on Azure
|
|
37
|
+
if(DEFINED ENV{VCPKG_ROOT})
|
|
38
|
+
set(CMAKE_TOOLCHAIN_FILE
|
|
39
|
+
"$ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
|
|
40
|
+
CACHE STRING "")
|
|
41
|
+
elseif(DEFINED ENV{VCPKG_INSTALLATION_ROOT})
|
|
42
|
+
set(CMAKE_TOOLCHAIN_FILE
|
|
43
|
+
"$ENV{VCPKG_INSTALLATION_ROOT}/scripts/buildsystems/vcpkg.cmake"
|
|
44
|
+
CACHE STRING "")
|
|
45
|
+
endif()
|
|
46
|
+
endif()
|
|
47
|
+
|
|
48
|
+
# Don't allow running cmake in root directory
|
|
49
|
+
if (CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR)
|
|
50
|
+
message(FATAL_ERROR [=[
|
|
51
|
+
Source and build directories cannot be the same.
|
|
52
|
+
You should probably also remove CMakeFiles/ and CMakeCache.txt.
|
|
53
|
+
]=])
|
|
54
|
+
endif()
|
|
55
|
+
|
|
56
|
+
include(ParseVersion)
|
|
57
|
+
parse_version("version.txt" PREFIX ALE)
|
|
58
|
+
|
|
59
|
+
project(ale VERSION ${ALE_DEFAULT_VERSION}
|
|
60
|
+
DESCRIPTION "The Arcade Learning Environment (ALE) - a platform for AI research."
|
|
61
|
+
HOMEPAGE_URL "http://www.arcadelearningenvironment.org"
|
|
62
|
+
LANGUAGES CXX)
|
|
63
|
+
|
|
64
|
+
# Main ALE src directory
|
|
65
|
+
add_subdirectory(src/ale)
|
|
66
|
+
|
|
67
|
+
# Only include tests in the main project
|
|
68
|
+
# if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
|
|
69
|
+
# enable_testing()
|
|
70
|
+
# add_subdirectory(tests)
|
|
71
|
+
# endif()
|
ale_py-0.10.1/LICENSE.md
ADDED
|
@@ -0,0 +1,361 @@
|
|
|
1
|
+
### GNU GENERAL PUBLIC LICENSE
|
|
2
|
+
|
|
3
|
+
Version 2, June 1991
|
|
4
|
+
|
|
5
|
+
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
|
6
|
+
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
|
7
|
+
|
|
8
|
+
Everyone is permitted to copy and distribute verbatim copies
|
|
9
|
+
of this license document, but changing it is not allowed.
|
|
10
|
+
|
|
11
|
+
### Preamble
|
|
12
|
+
|
|
13
|
+
The licenses for most software are designed to take away your freedom
|
|
14
|
+
to share and change it. By contrast, the GNU General Public License is
|
|
15
|
+
intended to guarantee your freedom to share and change free
|
|
16
|
+
software--to make sure the software is free for all its users. This
|
|
17
|
+
General Public License applies to most of the Free Software
|
|
18
|
+
Foundation's software and to any other program whose authors commit to
|
|
19
|
+
using it. (Some other Free Software Foundation software is covered by
|
|
20
|
+
the GNU Lesser General Public License instead.) You can apply it to
|
|
21
|
+
your programs, too.
|
|
22
|
+
|
|
23
|
+
When we speak of free software, we are referring to freedom, not
|
|
24
|
+
price. Our General Public Licenses are designed to make sure that you
|
|
25
|
+
have the freedom to distribute copies of free software (and charge for
|
|
26
|
+
this service if you wish), that you receive source code or can get it
|
|
27
|
+
if you want it, that you can change the software or use pieces of it
|
|
28
|
+
in new free programs; and that you know you can do these things.
|
|
29
|
+
|
|
30
|
+
To protect your rights, we need to make restrictions that forbid
|
|
31
|
+
anyone to deny you these rights or to ask you to surrender the rights.
|
|
32
|
+
These restrictions translate to certain responsibilities for you if
|
|
33
|
+
you distribute copies of the software, or if you modify it.
|
|
34
|
+
|
|
35
|
+
For example, if you distribute copies of such a program, whether
|
|
36
|
+
gratis or for a fee, you must give the recipients all the rights that
|
|
37
|
+
you have. You must make sure that they, too, receive or can get the
|
|
38
|
+
source code. And you must show them these terms so they know their
|
|
39
|
+
rights.
|
|
40
|
+
|
|
41
|
+
We protect your rights with two steps: (1) copyright the software, and
|
|
42
|
+
(2) offer you this license which gives you legal permission to copy,
|
|
43
|
+
distribute and/or modify the software.
|
|
44
|
+
|
|
45
|
+
Also, for each author's protection and ours, we want to make certain
|
|
46
|
+
that everyone understands that there is no warranty for this free
|
|
47
|
+
software. If the software is modified by someone else and passed on,
|
|
48
|
+
we want its recipients to know that what they have is not the
|
|
49
|
+
original, so that any problems introduced by others will not reflect
|
|
50
|
+
on the original authors' reputations.
|
|
51
|
+
|
|
52
|
+
Finally, any free program is threatened constantly by software
|
|
53
|
+
patents. We wish to avoid the danger that redistributors of a free
|
|
54
|
+
program will individually obtain patent licenses, in effect making the
|
|
55
|
+
program proprietary. To prevent this, we have made it clear that any
|
|
56
|
+
patent must be licensed for everyone's free use or not licensed at
|
|
57
|
+
all.
|
|
58
|
+
|
|
59
|
+
The precise terms and conditions for copying, distribution and
|
|
60
|
+
modification follow.
|
|
61
|
+
|
|
62
|
+
### TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
|
63
|
+
|
|
64
|
+
**0.** This License applies to any program or other work which
|
|
65
|
+
contains a notice placed by the copyright holder saying it may be
|
|
66
|
+
distributed under the terms of this General Public License. The
|
|
67
|
+
"Program", below, refers to any such program or work, and a "work
|
|
68
|
+
based on the Program" means either the Program or any derivative work
|
|
69
|
+
under copyright law: that is to say, a work containing the Program or
|
|
70
|
+
a portion of it, either verbatim or with modifications and/or
|
|
71
|
+
translated into another language. (Hereinafter, translation is
|
|
72
|
+
included without limitation in the term "modification".) Each licensee
|
|
73
|
+
is addressed as "you".
|
|
74
|
+
|
|
75
|
+
Activities other than copying, distribution and modification are not
|
|
76
|
+
covered by this License; they are outside its scope. The act of
|
|
77
|
+
running the Program is not restricted, and the output from the Program
|
|
78
|
+
is covered only if its contents constitute a work based on the Program
|
|
79
|
+
(independent of having been made by running the Program). Whether that
|
|
80
|
+
is true depends on what the Program does.
|
|
81
|
+
|
|
82
|
+
**1.** You may copy and distribute verbatim copies of the Program's
|
|
83
|
+
source code as you receive it, in any medium, provided that you
|
|
84
|
+
conspicuously and appropriately publish on each copy an appropriate
|
|
85
|
+
copyright notice and disclaimer of warranty; keep intact all the
|
|
86
|
+
notices that refer to this License and to the absence of any warranty;
|
|
87
|
+
and give any other recipients of the Program a copy of this License
|
|
88
|
+
along with the Program.
|
|
89
|
+
|
|
90
|
+
You may charge a fee for the physical act of transferring a copy, and
|
|
91
|
+
you may at your option offer warranty protection in exchange for a
|
|
92
|
+
fee.
|
|
93
|
+
|
|
94
|
+
**2.** You may modify your copy or copies of the Program or any
|
|
95
|
+
portion of it, thus forming a work based on the Program, and copy and
|
|
96
|
+
distribute such modifications or work under the terms of Section 1
|
|
97
|
+
above, provided that you also meet all of these conditions:
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
**a)** You must cause the modified files to carry prominent notices
|
|
101
|
+
stating that you changed the files and the date of any change.
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
**b)** You must cause any work that you distribute or publish, that in
|
|
105
|
+
whole or in part contains or is derived from the Program or any part
|
|
106
|
+
thereof, to be licensed as a whole at no charge to all third parties
|
|
107
|
+
under the terms of this License.
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
**c)** If the modified program normally reads commands interactively
|
|
111
|
+
when run, you must cause it, when started running for such interactive
|
|
112
|
+
use in the most ordinary way, to print or display an announcement
|
|
113
|
+
including an appropriate copyright notice and a notice that there is
|
|
114
|
+
no warranty (or else, saying that you provide a warranty) and that
|
|
115
|
+
users may redistribute the program under these conditions, and telling
|
|
116
|
+
the user how to view a copy of this License. (Exception: if the
|
|
117
|
+
Program itself is interactive but does not normally print such an
|
|
118
|
+
announcement, your work based on the Program is not required to print
|
|
119
|
+
an announcement.)
|
|
120
|
+
|
|
121
|
+
These requirements apply to the modified work as a whole. If
|
|
122
|
+
identifiable sections of that work are not derived from the Program,
|
|
123
|
+
and can be reasonably considered independent and separate works in
|
|
124
|
+
themselves, then this License, and its terms, do not apply to those
|
|
125
|
+
sections when you distribute them as separate works. But when you
|
|
126
|
+
distribute the same sections as part of a whole which is a work based
|
|
127
|
+
on the Program, the distribution of the whole must be on the terms of
|
|
128
|
+
this License, whose permissions for other licensees extend to the
|
|
129
|
+
entire whole, and thus to each and every part regardless of who wrote
|
|
130
|
+
it.
|
|
131
|
+
|
|
132
|
+
Thus, it is not the intent of this section to claim rights or contest
|
|
133
|
+
your rights to work written entirely by you; rather, the intent is to
|
|
134
|
+
exercise the right to control the distribution of derivative or
|
|
135
|
+
collective works based on the Program.
|
|
136
|
+
|
|
137
|
+
In addition, mere aggregation of another work not based on the Program
|
|
138
|
+
with the Program (or with a work based on the Program) on a volume of
|
|
139
|
+
a storage or distribution medium does not bring the other work under
|
|
140
|
+
the scope of this License.
|
|
141
|
+
|
|
142
|
+
**3.** You may copy and distribute the Program (or a work based on it,
|
|
143
|
+
under Section 2) in object code or executable form under the terms of
|
|
144
|
+
Sections 1 and 2 above provided that you also do one of the following:
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
**a)** Accompany it with the complete corresponding machine-readable
|
|
148
|
+
source code, which must be distributed under the terms of Sections 1
|
|
149
|
+
and 2 above on a medium customarily used for software interchange; or,
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
**b)** Accompany it with a written offer, valid for at least three
|
|
153
|
+
years, to give any third party, for a charge no more than your cost of
|
|
154
|
+
physically performing source distribution, a complete machine-readable
|
|
155
|
+
copy of the corresponding source code, to be distributed under the
|
|
156
|
+
terms of Sections 1 and 2 above on a medium customarily used for
|
|
157
|
+
software interchange; or,
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
**c)** Accompany it with the information you received as to the offer
|
|
161
|
+
to distribute corresponding source code. (This alternative is allowed
|
|
162
|
+
only for noncommercial distribution and only if you received the
|
|
163
|
+
program in object code or executable form with such an offer, in
|
|
164
|
+
accord with Subsection b above.)
|
|
165
|
+
|
|
166
|
+
The source code for a work means the preferred form of the work for
|
|
167
|
+
making modifications to it. For an executable work, complete source
|
|
168
|
+
code means all the source code for all modules it contains, plus any
|
|
169
|
+
associated interface definition files, plus the scripts used to
|
|
170
|
+
control compilation and installation of the executable. However, as a
|
|
171
|
+
special exception, the source code distributed need not include
|
|
172
|
+
anything that is normally distributed (in either source or binary
|
|
173
|
+
form) with the major components (compiler, kernel, and so on) of the
|
|
174
|
+
operating system on which the executable runs, unless that component
|
|
175
|
+
itself accompanies the executable.
|
|
176
|
+
|
|
177
|
+
If distribution of executable or object code is made by offering
|
|
178
|
+
access to copy from a designated place, then offering equivalent
|
|
179
|
+
access to copy the source code from the same place counts as
|
|
180
|
+
distribution of the source code, even though third parties are not
|
|
181
|
+
compelled to copy the source along with the object code.
|
|
182
|
+
|
|
183
|
+
**4.** You may not copy, modify, sublicense, or distribute the Program
|
|
184
|
+
except as expressly provided under this License. Any attempt otherwise
|
|
185
|
+
to copy, modify, sublicense or distribute the Program is void, and
|
|
186
|
+
will automatically terminate your rights under this License. However,
|
|
187
|
+
parties who have received copies, or rights, from you under this
|
|
188
|
+
License will not have their licenses terminated so long as such
|
|
189
|
+
parties remain in full compliance.
|
|
190
|
+
|
|
191
|
+
**5.** You are not required to accept this License, since you have not
|
|
192
|
+
signed it. However, nothing else grants you permission to modify or
|
|
193
|
+
distribute the Program or its derivative works. These actions are
|
|
194
|
+
prohibited by law if you do not accept this License. Therefore, by
|
|
195
|
+
modifying or distributing the Program (or any work based on the
|
|
196
|
+
Program), you indicate your acceptance of this License to do so, and
|
|
197
|
+
all its terms and conditions for copying, distributing or modifying
|
|
198
|
+
the Program or works based on it.
|
|
199
|
+
|
|
200
|
+
**6.** Each time you redistribute the Program (or any work based on
|
|
201
|
+
the Program), the recipient automatically receives a license from the
|
|
202
|
+
original licensor to copy, distribute or modify the Program subject to
|
|
203
|
+
these terms and conditions. You may not impose any further
|
|
204
|
+
restrictions on the recipients' exercise of the rights granted herein.
|
|
205
|
+
You are not responsible for enforcing compliance by third parties to
|
|
206
|
+
this License.
|
|
207
|
+
|
|
208
|
+
**7.** If, as a consequence of a court judgment or allegation of
|
|
209
|
+
patent infringement or for any other reason (not limited to patent
|
|
210
|
+
issues), conditions are imposed on you (whether by court order,
|
|
211
|
+
agreement or otherwise) that contradict the conditions of this
|
|
212
|
+
License, they do not excuse you from the conditions of this License.
|
|
213
|
+
If you cannot distribute so as to satisfy simultaneously your
|
|
214
|
+
obligations under this License and any other pertinent obligations,
|
|
215
|
+
then as a consequence you may not distribute the Program at all. For
|
|
216
|
+
example, if a patent license would not permit royalty-free
|
|
217
|
+
redistribution of the Program by all those who receive copies directly
|
|
218
|
+
or indirectly through you, then the only way you could satisfy both it
|
|
219
|
+
and this License would be to refrain entirely from distribution of the
|
|
220
|
+
Program.
|
|
221
|
+
|
|
222
|
+
If any portion of this section is held invalid or unenforceable under
|
|
223
|
+
any particular circumstance, the balance of the section is intended to
|
|
224
|
+
apply and the section as a whole is intended to apply in other
|
|
225
|
+
circumstances.
|
|
226
|
+
|
|
227
|
+
It is not the purpose of this section to induce you to infringe any
|
|
228
|
+
patents or other property right claims or to contest validity of any
|
|
229
|
+
such claims; this section has the sole purpose of protecting the
|
|
230
|
+
integrity of the free software distribution system, which is
|
|
231
|
+
implemented by public license practices. Many people have made
|
|
232
|
+
generous contributions to the wide range of software distributed
|
|
233
|
+
through that system in reliance on consistent application of that
|
|
234
|
+
system; it is up to the author/donor to decide if he or she is willing
|
|
235
|
+
to distribute software through any other system and a licensee cannot
|
|
236
|
+
impose that choice.
|
|
237
|
+
|
|
238
|
+
This section is intended to make thoroughly clear what is believed to
|
|
239
|
+
be a consequence of the rest of this License.
|
|
240
|
+
|
|
241
|
+
**8.** If the distribution and/or use of the Program is restricted in
|
|
242
|
+
certain countries either by patents or by copyrighted interfaces, the
|
|
243
|
+
original copyright holder who places the Program under this License
|
|
244
|
+
may add an explicit geographical distribution limitation excluding
|
|
245
|
+
those countries, so that distribution is permitted only in or among
|
|
246
|
+
countries not thus excluded. In such case, this License incorporates
|
|
247
|
+
the limitation as if written in the body of this License.
|
|
248
|
+
|
|
249
|
+
**9.** The Free Software Foundation may publish revised and/or new
|
|
250
|
+
versions of the General Public License from time to time. Such new
|
|
251
|
+
versions will be similar in spirit to the present version, but may
|
|
252
|
+
differ in detail to address new problems or concerns.
|
|
253
|
+
|
|
254
|
+
Each version is given a distinguishing version number. If the Program
|
|
255
|
+
specifies a version number of this License which applies to it and
|
|
256
|
+
"any later version", you have the option of following the terms and
|
|
257
|
+
conditions either of that version or of any later version published by
|
|
258
|
+
the Free Software Foundation. If the Program does not specify a
|
|
259
|
+
version number of this License, you may choose any version ever
|
|
260
|
+
published by the Free Software Foundation.
|
|
261
|
+
|
|
262
|
+
**10.** If you wish to incorporate parts of the Program into other
|
|
263
|
+
free programs whose distribution conditions are different, write to
|
|
264
|
+
the author to ask for permission. For software which is copyrighted by
|
|
265
|
+
the Free Software Foundation, write to the Free Software Foundation;
|
|
266
|
+
we sometimes make exceptions for this. Our decision will be guided by
|
|
267
|
+
the two goals of preserving the free status of all derivatives of our
|
|
268
|
+
free software and of promoting the sharing and reuse of software
|
|
269
|
+
generally.
|
|
270
|
+
|
|
271
|
+
**NO WARRANTY**
|
|
272
|
+
|
|
273
|
+
**11.** BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO
|
|
274
|
+
WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
|
|
275
|
+
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
|
|
276
|
+
OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY
|
|
277
|
+
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
|
|
278
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
279
|
+
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
|
|
280
|
+
PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME
|
|
281
|
+
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
|
282
|
+
|
|
283
|
+
**12.** IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
|
|
284
|
+
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
|
|
285
|
+
AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU
|
|
286
|
+
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
|
|
287
|
+
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
|
|
288
|
+
PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
|
|
289
|
+
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
|
|
290
|
+
FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF
|
|
291
|
+
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
|
292
|
+
DAMAGES.
|
|
293
|
+
|
|
294
|
+
### END OF TERMS AND CONDITIONS
|
|
295
|
+
|
|
296
|
+
### How to Apply These Terms to Your New Programs
|
|
297
|
+
|
|
298
|
+
If you develop a new program, and you want it to be of the greatest
|
|
299
|
+
possible use to the public, the best way to achieve this is to make it
|
|
300
|
+
free software which everyone can redistribute and change under these
|
|
301
|
+
terms.
|
|
302
|
+
|
|
303
|
+
To do so, attach the following notices to the program. It is safest to
|
|
304
|
+
attach them to the start of each source file to most effectively
|
|
305
|
+
convey the exclusion of warranty; and each file should have at least
|
|
306
|
+
the "copyright" line and a pointer to where the full notice is found.
|
|
307
|
+
|
|
308
|
+
one line to give the program's name and an idea of what it does.
|
|
309
|
+
Copyright (C) yyyy name of author
|
|
310
|
+
|
|
311
|
+
This program is free software; you can redistribute it and/or
|
|
312
|
+
modify it under the terms of the GNU General Public License
|
|
313
|
+
as published by the Free Software Foundation; either version 2
|
|
314
|
+
of the License, or (at your option) any later version.
|
|
315
|
+
|
|
316
|
+
This program is distributed in the hope that it will be useful,
|
|
317
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
318
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
319
|
+
GNU General Public License for more details.
|
|
320
|
+
|
|
321
|
+
You should have received a copy of the GNU General Public License
|
|
322
|
+
along with this program; if not, write to the Free Software
|
|
323
|
+
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
324
|
+
|
|
325
|
+
Also add information on how to contact you by electronic and paper
|
|
326
|
+
mail.
|
|
327
|
+
|
|
328
|
+
If the program is interactive, make it output a short notice like this
|
|
329
|
+
when it starts in an interactive mode:
|
|
330
|
+
|
|
331
|
+
Gnomovision version 69, Copyright (C) year name of author
|
|
332
|
+
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details
|
|
333
|
+
type `show w'. This is free software, and you are welcome
|
|
334
|
+
to redistribute it under certain conditions; type `show c'
|
|
335
|
+
for details.
|
|
336
|
+
|
|
337
|
+
The hypothetical commands \`show w' and \`show c' should show the
|
|
338
|
+
appropriate parts of the General Public License. Of course, the
|
|
339
|
+
commands you use may be called something other than \`show w' and
|
|
340
|
+
\`show c'; they could even be mouse-clicks or menu items--whatever
|
|
341
|
+
suits your program.
|
|
342
|
+
|
|
343
|
+
You should also get your employer (if you work as a programmer) or
|
|
344
|
+
your school, if any, to sign a "copyright disclaimer" for the program,
|
|
345
|
+
if necessary. Here is a sample; alter the names:
|
|
346
|
+
|
|
347
|
+
Yoyodyne, Inc., hereby disclaims all copyright
|
|
348
|
+
interest in the program `Gnomovision'
|
|
349
|
+
(which makes passes at compilers) written
|
|
350
|
+
by James Hacker.
|
|
351
|
+
|
|
352
|
+
signature of Ty Coon, 1 April 1989
|
|
353
|
+
Ty Coon, President of Vice
|
|
354
|
+
|
|
355
|
+
This General Public License does not permit incorporating your program
|
|
356
|
+
into proprietary programs. If your program is a subroutine library,
|
|
357
|
+
you may consider it more useful to permit linking proprietary
|
|
358
|
+
applications with the library. If this is what you want to do, use the
|
|
359
|
+
[GNU Lesser General Public
|
|
360
|
+
License](https://www.gnu.org/licenses/lgpl.html) instead of this
|
|
361
|
+
License.
|
ale_py-0.10.1/PKG-INFO
ADDED
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: ale-py
|
|
3
|
+
Version: 0.10.1
|
|
4
|
+
Summary: The Arcade Learning Environment (ALE) - a platform for AI research.
|
|
5
|
+
Author: Marc G. Bellemare, Yavar Naddaf, Joel Veness, Michael Bowling
|
|
6
|
+
Maintainer-email: Farama Foundation <contact@farama.org>, Jesse Farebrother <jfarebro@cs.mcgill.ca>
|
|
7
|
+
License: GPLv2
|
|
8
|
+
Project-URL: homepage, https://github.com/Farama-Foundation/Arcade-Learning-Environment
|
|
9
|
+
Project-URL: documentation, https://github.com/Farama-Foundation/Arcade-Learning-Environment/tree/master/docs
|
|
10
|
+
Project-URL: changelog, https://github.com/Farama-Foundation/Arcade-Learning-Environment/blob/master/CHANGELOG.md
|
|
11
|
+
Keywords: reinforcement-learning,arcade-learning-environment,atari
|
|
12
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
13
|
+
Classifier: Intended Audience :: Science/Research
|
|
14
|
+
Classifier: License :: OSI Approved :: GNU General Public License v2 (GPLv2)
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
+
Classifier: Topic :: Scientific/Engineering
|
|
22
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
23
|
+
Requires-Python: >=3.8
|
|
24
|
+
Description-Content-Type: text/markdown
|
|
25
|
+
License-File: LICENSE.md
|
|
26
|
+
Requires-Dist: numpy>1.20
|
|
27
|
+
Requires-Dist: importlib-metadata>=4.10.0; python_version < "3.10"
|
|
28
|
+
Requires-Dist: importlib-resources; python_version < "3.9"
|
|
29
|
+
Requires-Dist: typing-extensions; python_version < "3.11"
|
|
30
|
+
Provides-Extra: test
|
|
31
|
+
Requires-Dist: pytest>=7.0; extra == "test"
|
|
32
|
+
Requires-Dist: gymnasium>=1.0.0a1; extra == "test"
|
|
33
|
+
|
|
34
|
+
The Arcade Learning Environment
|
|
35
|
+
<a href="#the-arcade-learning-environment">
|
|
36
|
+
<img alt="Arcade Learning Environment" align="right" width=75 src="https://github.com/Farama-Foundation/Arcade-Learning-Environment/blob/master/docs/_static/img/ale.svg" />
|
|
37
|
+
</a>
|
|
38
|
+
===============================
|
|
39
|
+
|
|
40
|
+
[](https://badge.fury.io/py/ale-py)
|
|
41
|
+
[](https://pypi.org/project/ale-py)
|
|
42
|
+
|
|
43
|
+
**The Arcade Learning Environment (ALE) is a simple framework that allows researchers and hobbyists to develop AI agents for Atari 2600 games.**
|
|
44
|
+
It is built on top of the Atari 2600 emulator [Stella](https://stella-emu.github.io) and separates the details of emulation from agent design.
|
|
45
|
+
This [video](https://www.youtube.com/watch?v=nzUiEkasXZI) depicts over 50 games currently supported in the ALE.
|
|
46
|
+
|
|
47
|
+
For an overview of our goals for the ALE read [The Arcade Learning Environment: An Evaluation Platform for General Agents](https://jair.org/index.php/jair/article/view/10819).
|
|
48
|
+
If you use ALE in your research, we ask that you please cite this paper in reference to the environment. See the [Citing](#Citing) section for BibTeX entries.
|
|
49
|
+
|
|
50
|
+
Features
|
|
51
|
+
--------
|
|
52
|
+
|
|
53
|
+
- Object-oriented framework with support to add agents and games.
|
|
54
|
+
- Emulation core uncoupled from rendering and sound generation modules for fast emulation with minimal library dependencies.
|
|
55
|
+
- Automatic extraction of game score and end-of-game signal for more than 100 Atari 2600 games.
|
|
56
|
+
- Multi-platform code (compiled and tested under macOS, Windows, and several Linux distributions).
|
|
57
|
+
- Python bindings through [pybind11](https://github.com/pybind/pybind11).
|
|
58
|
+
- Native support for [Gymnasium](http://github.com/farama-Foundation/gymnasium), a maintained fork of OpenAI Gym.
|
|
59
|
+
- Visualization tools.
|
|
60
|
+
- Atari roms are packaged within the pip package
|
|
61
|
+
|
|
62
|
+
Quick Start
|
|
63
|
+
===========
|
|
64
|
+
|
|
65
|
+
The ALE currently supports three different interfaces: C++, Python, and Gymnasium.
|
|
66
|
+
|
|
67
|
+
Python
|
|
68
|
+
------
|
|
69
|
+
|
|
70
|
+
You simply need to install the `ale-py` package distributed via PyPI:
|
|
71
|
+
|
|
72
|
+
```shell
|
|
73
|
+
pip install ale-py
|
|
74
|
+
```
|
|
75
|
+
Note: Make sure you're using an up-to-date version of `pip` or the installation may fail.
|
|
76
|
+
|
|
77
|
+
You can now import the ALE in your Python projects with providing a direct interface to Stella for interacting with games
|
|
78
|
+
```python
|
|
79
|
+
from ale_py import ALEInterface, roms
|
|
80
|
+
|
|
81
|
+
ale = ALEInterface()
|
|
82
|
+
ale.loadROM(roms.get_rom_path("Breakout"))
|
|
83
|
+
ale.reset_game()
|
|
84
|
+
|
|
85
|
+
reward = ale.act(0) # noop
|
|
86
|
+
screen_obs = ale.getScreenRGB()
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## Gymnasium
|
|
90
|
+
|
|
91
|
+
For simplicity for installing ale-py with Gymnasium, `pip install "gymnasium[atari]"` shall install all necessary modules and ROMs. See Gymnasium [introductory page](https://gymnasium.farama.org/main/introduction/basic_usage/) for description of the API to interface with the environment.
|
|
92
|
+
|
|
93
|
+
```py
|
|
94
|
+
import gymnasium as gym
|
|
95
|
+
import ale_py
|
|
96
|
+
|
|
97
|
+
gym.register_envs(ale_py) # unnecessary but helpful for IDEs
|
|
98
|
+
|
|
99
|
+
env = gym.make('ALE/Breakout-v5', render_mode="human") # remove render_mode in training
|
|
100
|
+
obs, info = env.reset()
|
|
101
|
+
episode_over = False
|
|
102
|
+
while not episode_over:
|
|
103
|
+
action = policy(obs) # to implement - use `env.action_space.sample()` for a random policy
|
|
104
|
+
obs, reward, terminated, truncated, info = env.step(action)
|
|
105
|
+
|
|
106
|
+
episode_over = terminated or truncated
|
|
107
|
+
env.close()
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
For all the environments available and their description, see [gymnasium atari page](https://gymnasium.farama.org/environments/atari/).
|
|
111
|
+
|
|
112
|
+
C++
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
The following instructions will assume you have a valid C++17 compiler and [`vcpkg`](https://github.com/microsoft/vcpkg) installed.
|
|
116
|
+
|
|
117
|
+
We use CMake as a first class citizen, and you can use the ALE directly with any CMake project.
|
|
118
|
+
To compile and install the ALE you can run
|
|
119
|
+
|
|
120
|
+
```sh
|
|
121
|
+
mkdir build && cd build
|
|
122
|
+
cmake ../ -DCMAKE_BUILD_TYPE=Release
|
|
123
|
+
cmake --build . --target install
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
There are optional flags `-DSDL_SUPPORT=ON/OFF` to toggle SDL support (i.e., `display_screen` and `sound` support; `OFF` by default), `-DBUILD_CPP_LIB=ON/OFF` to build
|
|
127
|
+
the `ale-lib` C++ target (`ON` by default), and `-DBUILD_PYTHON_LIB=ON/OFF` to build the pybind11 wrapper (`ON` by default).
|
|
128
|
+
|
|
129
|
+
Finally, you can link agaisnt the ALE in your own CMake project as follows
|
|
130
|
+
|
|
131
|
+
```cmake
|
|
132
|
+
find_package(ale REQUIRED)
|
|
133
|
+
target_link_libraries(YourTarget ale::ale-lib)
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
Citing
|
|
137
|
+
======
|
|
138
|
+
|
|
139
|
+
If you use the ALE in your research, we ask that you please cite the following.
|
|
140
|
+
|
|
141
|
+
*M. G. Bellemare, Y. Naddaf, J. Veness and M. Bowling. The Arcade Learning Environment: An Evaluation Platform for General Agents, Journal of Artificial Intelligence Research, Volume 47, pages 253-279, 2013.*
|
|
142
|
+
|
|
143
|
+
In BibTeX format:
|
|
144
|
+
|
|
145
|
+
```bibtex
|
|
146
|
+
@Article{bellemare13arcade,
|
|
147
|
+
author = {{Bellemare}, M.~G. and {Naddaf}, Y. and {Veness}, J. and {Bowling}, M.},
|
|
148
|
+
title = {The Arcade Learning Environment: An Evaluation Platform for General Agents},
|
|
149
|
+
journal = {Journal of Artificial Intelligence Research},
|
|
150
|
+
year = "2013",
|
|
151
|
+
month = "jun",
|
|
152
|
+
volume = "47",
|
|
153
|
+
pages = "253--279",
|
|
154
|
+
}
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
If you use the ALE with sticky actions (flag ``repeat_action_probability``), or if
|
|
158
|
+
you use the different game flavours (mode and difficulty switches), we ask you
|
|
159
|
+
that you also cite the following:
|
|
160
|
+
|
|
161
|
+
*M. C. Machado, M. G. Bellemare, E. Talvitie, J. Veness, M. J. Hausknecht, M. Bowling. Revisiting the Arcade Learning Environment: Evaluation Protocols and Open Problems for General Agents, Journal of Artificial Intelligence Research, Volume 61, pages 523-562, 2018.*
|
|
162
|
+
|
|
163
|
+
In BibTex format:
|
|
164
|
+
|
|
165
|
+
```bibtex
|
|
166
|
+
@Article{machado18arcade,
|
|
167
|
+
author = {Marlos C. Machado and Marc G. Bellemare and Erik Talvitie and Joel Veness and Matthew J. Hausknecht and Michael Bowling},
|
|
168
|
+
title = {Revisiting the Arcade Learning Environment: Evaluation Protocols and Open Problems for General Agents},
|
|
169
|
+
journal = {Journal of Artificial Intelligence Research},
|
|
170
|
+
volume = {61},
|
|
171
|
+
pages = {523--562},
|
|
172
|
+
year = {2018}
|
|
173
|
+
}
|
|
174
|
+
```
|