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.
Files changed (390) hide show
  1. ale_py-0.10.1/CMakeLists.txt +71 -0
  2. ale_py-0.10.1/LICENSE.md +361 -0
  3. ale_py-0.10.1/MANIFEST.in +7 -0
  4. ale_py-0.10.1/PKG-INFO +174 -0
  5. ale_py-0.10.1/README.md +141 -0
  6. ale_py-0.10.1/ale_py.egg-info/PKG-INFO +174 -0
  7. ale_py-0.10.1/ale_py.egg-info/SOURCES.txt +388 -0
  8. ale_py-0.10.1/ale_py.egg-info/dependency_links.txt +1 -0
  9. ale_py-0.10.1/ale_py.egg-info/requires.txt +14 -0
  10. ale_py-0.10.1/ale_py.egg-info/top_level.txt +1 -0
  11. ale_py-0.10.1/cmake/ParseVersion.cmake +74 -0
  12. ale_py-0.10.1/cmake/ale-config.cmake.in +14 -0
  13. ale_py-0.10.1/cmake/custom-triplets/arm64-osx-mixed.cmake +16 -0
  14. ale_py-0.10.1/cmake/custom-triplets/universal2-osx-mixed.cmake +16 -0
  15. ale_py-0.10.1/cmake/custom-triplets/x64-linux-mixed.cmake +11 -0
  16. ale_py-0.10.1/cmake/custom-triplets/x64-osx-mixed.cmake +16 -0
  17. ale_py-0.10.1/pyproject.toml +101 -0
  18. ale_py-0.10.1/scripts/download_unpack_roms.sh +20 -0
  19. ale_py-0.10.1/setup.cfg +4 -0
  20. ale_py-0.10.1/setup.py +144 -0
  21. ale_py-0.10.1/src/ale/CMakeLists.txt +113 -0
  22. ale_py-0.10.1/src/ale/ale_interface.cpp +399 -0
  23. ale_py-0.10.1/src/ale/ale_interface.hpp +219 -0
  24. ale_py-0.10.1/src/ale/common/CMakeLists.txt +14 -0
  25. ale_py-0.10.1/src/ale/common/ColourPalette.cpp +213 -0
  26. ale_py-0.10.1/src/ale/common/ColourPalette.hpp +83 -0
  27. ale_py-0.10.1/src/ale/common/Constants.cpp +73 -0
  28. ale_py-0.10.1/src/ale/common/Constants.h +96 -0
  29. ale_py-0.10.1/src/ale/common/DynamicLoad.cpp +54 -0
  30. ale_py-0.10.1/src/ale/common/DynamicLoad.hpp +26 -0
  31. ale_py-0.10.1/src/ale/common/Log.cpp +18 -0
  32. ale_py-0.10.1/src/ale/common/Log.hpp +33 -0
  33. ale_py-0.10.1/src/ale/common/Palettes.hpp +219 -0
  34. ale_py-0.10.1/src/ale/common/SDL2.cpp +274 -0
  35. ale_py-0.10.1/src/ale/common/SDL2.hpp +189 -0
  36. ale_py-0.10.1/src/ale/common/ScreenExporter.cpp +193 -0
  37. ale_py-0.10.1/src/ale/common/ScreenExporter.hpp +58 -0
  38. ale_py-0.10.1/src/ale/common/ScreenSDL.cpp +226 -0
  39. ale_py-0.10.1/src/ale/common/ScreenSDL.hpp +74 -0
  40. ale_py-0.10.1/src/ale/common/SoundExporter.cpp +65 -0
  41. ale_py-0.10.1/src/ale/common/SoundExporter.hpp +70 -0
  42. ale_py-0.10.1/src/ale/common/SoundNull.cxx +80 -0
  43. ale_py-0.10.1/src/ale/common/SoundNull.hxx +171 -0
  44. ale_py-0.10.1/src/ale/common/SoundSDL.cxx +591 -0
  45. ale_py-0.10.1/src/ale/common/SoundSDL.hxx +304 -0
  46. ale_py-0.10.1/src/ale/emucore/CMakeLists.txt +50 -0
  47. ale_py-0.10.1/src/ale/emucore/Cart.cxx +479 -0
  48. ale_py-0.10.1/src/ale/emucore/Cart.hxx +217 -0
  49. ale_py-0.10.1/src/ale/emucore/Cart0840.cxx +109 -0
  50. ale_py-0.10.1/src/ale/emucore/Cart0840.hxx +151 -0
  51. ale_py-0.10.1/src/ale/emucore/Cart2K.cxx +170 -0
  52. ale_py-0.10.1/src/ale/emucore/Cart2K.hxx +157 -0
  53. ale_py-0.10.1/src/ale/emucore/Cart3E.cxx +311 -0
  54. ale_py-0.10.1/src/ale/emucore/Cart3E.hxx +195 -0
  55. ale_py-0.10.1/src/ale/emucore/Cart3F.cxx +249 -0
  56. ale_py-0.10.1/src/ale/emucore/Cart3F.hxx +169 -0
  57. ale_py-0.10.1/src/ale/emucore/Cart4A50.cxx +109 -0
  58. ale_py-0.10.1/src/ale/emucore/Cart4A50.hxx +152 -0
  59. ale_py-0.10.1/src/ale/emucore/Cart4K.cxx +170 -0
  60. ale_py-0.10.1/src/ale/emucore/Cart4K.hxx +156 -0
  61. ale_py-0.10.1/src/ale/emucore/CartAR.cxx +600 -0
  62. ale_py-0.10.1/src/ale/emucore/CartAR.hxx +219 -0
  63. ale_py-0.10.1/src/ale/emucore/CartCV.cxx +225 -0
  64. ale_py-0.10.1/src/ale/emucore/CartCV.hxx +166 -0
  65. ale_py-0.10.1/src/ale/emucore/CartDPC.cxx +617 -0
  66. ale_py-0.10.1/src/ale/emucore/CartDPC.hxx +209 -0
  67. ale_py-0.10.1/src/ale/emucore/CartE0.cxx +293 -0
  68. ale_py-0.10.1/src/ale/emucore/CartE0.hxx +186 -0
  69. ale_py-0.10.1/src/ale/emucore/CartE7.cxx +325 -0
  70. ale_py-0.10.1/src/ale/emucore/CartE7.hxx +195 -0
  71. ale_py-0.10.1/src/ale/emucore/CartF4.cxx +215 -0
  72. ale_py-0.10.1/src/ale/emucore/CartF4.hxx +159 -0
  73. ale_py-0.10.1/src/ale/emucore/CartF4SC.cxx +251 -0
  74. ale_py-0.10.1/src/ale/emucore/CartF4SC.hxx +162 -0
  75. ale_py-0.10.1/src/ale/emucore/CartF6.cxx +256 -0
  76. ale_py-0.10.1/src/ale/emucore/CartF6.hxx +159 -0
  77. ale_py-0.10.1/src/ale/emucore/CartF6SC.cxx +296 -0
  78. ale_py-0.10.1/src/ale/emucore/CartF6SC.hxx +162 -0
  79. ale_py-0.10.1/src/ale/emucore/CartF8.cxx +241 -0
  80. ale_py-0.10.1/src/ale/emucore/CartF8.hxx +163 -0
  81. ale_py-0.10.1/src/ale/emucore/CartF8SC.cxx +278 -0
  82. ale_py-0.10.1/src/ale/emucore/CartF8SC.hxx +162 -0
  83. ale_py-0.10.1/src/ale/emucore/CartFASC.cxx +284 -0
  84. ale_py-0.10.1/src/ale/emucore/CartFASC.hxx +162 -0
  85. ale_py-0.10.1/src/ale/emucore/CartFE.cxx +169 -0
  86. ale_py-0.10.1/src/ale/emucore/CartFE.hxx +168 -0
  87. ale_py-0.10.1/src/ale/emucore/CartMB.cxx +221 -0
  88. ale_py-0.10.1/src/ale/emucore/CartMB.hxx +166 -0
  89. ale_py-0.10.1/src/ale/emucore/CartMC.cxx +324 -0
  90. ale_py-0.10.1/src/ale/emucore/CartMC.hxx +272 -0
  91. ale_py-0.10.1/src/ale/emucore/CartUA.cxx +248 -0
  92. ale_py-0.10.1/src/ale/emucore/CartUA.hxx +163 -0
  93. ale_py-0.10.1/src/ale/emucore/Console.cxx +228 -0
  94. ale_py-0.10.1/src/ale/emucore/Console.hxx +187 -0
  95. ale_py-0.10.1/src/ale/emucore/Control.cxx +67 -0
  96. ale_py-0.10.1/src/ale/emucore/Control.hxx +183 -0
  97. ale_py-0.10.1/src/ale/emucore/DefProps.hxx +2698 -0
  98. ale_py-0.10.1/src/ale/emucore/Deserializer.cxx +88 -0
  99. ale_py-0.10.1/src/ale/emucore/Deserializer.hxx +87 -0
  100. ale_py-0.10.1/src/ale/emucore/Device.cxx +42 -0
  101. ale_py-0.10.1/src/ale/emucore/Device.hxx +125 -0
  102. ale_py-0.10.1/src/ale/emucore/Event.cxx +68 -0
  103. ale_py-0.10.1/src/ale/emucore/Event.hxx +101 -0
  104. ale_py-0.10.1/src/ale/emucore/Joystick.cxx +81 -0
  105. ale_py-0.10.1/src/ale/emucore/Joystick.hxx +81 -0
  106. ale_py-0.10.1/src/ale/emucore/M6502.cxx +351 -0
  107. ale_py-0.10.1/src/ale/emucore/M6502.hxx +267 -0
  108. ale_py-0.10.1/src/ale/emucore/M6502.m4 +1870 -0
  109. ale_py-0.10.1/src/ale/emucore/M6502Hi.cxx +283 -0
  110. ale_py-0.10.1/src/ale/emucore/M6502Hi.hxx +144 -0
  111. ale_py-0.10.1/src/ale/emucore/M6502Hi.ins +4430 -0
  112. ale_py-0.10.1/src/ale/emucore/M6502Hi.m4 +313 -0
  113. ale_py-0.10.1/src/ale/emucore/M6502Low.cxx +258 -0
  114. ale_py-0.10.1/src/ale/emucore/M6502Low.hxx +130 -0
  115. ale_py-0.10.1/src/ale/emucore/M6502Low.ins +4372 -0
  116. ale_py-0.10.1/src/ale/emucore/M6502Low.m4 +284 -0
  117. ale_py-0.10.1/src/ale/emucore/M6532.cxx +390 -0
  118. ale_py-0.10.1/src/ale/emucore/M6532.hxx +159 -0
  119. ale_py-0.10.1/src/ale/emucore/MD5.cxx +352 -0
  120. ale_py-0.10.1/src/ale/emucore/MD5.hxx +41 -0
  121. ale_py-0.10.1/src/ale/emucore/MediaSrc.cxx +49 -0
  122. ale_py-0.10.1/src/ale/emucore/MediaSrc.hxx +119 -0
  123. ale_py-0.10.1/src/ale/emucore/NullDev.cxx +81 -0
  124. ale_py-0.10.1/src/ale/emucore/NullDev.hxx +114 -0
  125. ale_py-0.10.1/src/ale/emucore/OSystem.cxx +322 -0
  126. ale_py-0.10.1/src/ale/emucore/OSystem.hxx +220 -0
  127. ale_py-0.10.1/src/ale/emucore/Paddles.cxx +117 -0
  128. ale_py-0.10.1/src/ale/emucore/Paddles.hxx +88 -0
  129. ale_py-0.10.1/src/ale/emucore/Props.cxx +338 -0
  130. ale_py-0.10.1/src/ale/emucore/Props.hxx +187 -0
  131. ale_py-0.10.1/src/ale/emucore/PropsSet.cxx +203 -0
  132. ale_py-0.10.1/src/ale/emucore/PropsSet.hxx +139 -0
  133. ale_py-0.10.1/src/ale/emucore/Random.cxx +132 -0
  134. ale_py-0.10.1/src/ale/emucore/Random.hxx +94 -0
  135. ale_py-0.10.1/src/ale/emucore/Screen.hxx +40 -0
  136. ale_py-0.10.1/src/ale/emucore/Serializer.cxx +75 -0
  137. ale_py-0.10.1/src/ale/emucore/Serializer.hxx +103 -0
  138. ale_py-0.10.1/src/ale/emucore/Settings.cxx +459 -0
  139. ale_py-0.10.1/src/ale/emucore/Settings.hxx +218 -0
  140. ale_py-0.10.1/src/ale/emucore/Sound.hxx +171 -0
  141. ale_py-0.10.1/src/ale/emucore/Switches.cxx +116 -0
  142. ale_py-0.10.1/src/ale/emucore/Switches.hxx +73 -0
  143. ale_py-0.10.1/src/ale/emucore/System.cxx +315 -0
  144. ale_py-0.10.1/src/ale/emucore/System.hxx +436 -0
  145. ale_py-0.10.1/src/ale/emucore/TIA.cxx +3564 -0
  146. ale_py-0.10.1/src/ale/emucore/TIA.hxx +554 -0
  147. ale_py-0.10.1/src/ale/emucore/TIASnd.cxx +390 -0
  148. ale_py-0.10.1/src/ale/emucore/TIASnd.hxx +157 -0
  149. ale_py-0.10.1/src/ale/emucore/stella.pro +15478 -0
  150. ale_py-0.10.1/src/ale/environment/CMakeLists.txt +7 -0
  151. ale_py-0.10.1/src/ale/environment/ale_ram.hpp +65 -0
  152. ale_py-0.10.1/src/ale/environment/ale_screen.hpp +111 -0
  153. ale_py-0.10.1/src/ale/environment/ale_state.cpp +500 -0
  154. ale_py-0.10.1/src/ale/environment/ale_state.hpp +149 -0
  155. ale_py-0.10.1/src/ale/environment/phosphor_blend.cpp +124 -0
  156. ale_py-0.10.1/src/ale/environment/phosphor_blend.hpp +49 -0
  157. ale_py-0.10.1/src/ale/environment/stella_environment.cpp +336 -0
  158. ale_py-0.10.1/src/ale/environment/stella_environment.hpp +183 -0
  159. ale_py-0.10.1/src/ale/environment/stella_environment_wrapper.cpp +29 -0
  160. ale_py-0.10.1/src/ale/environment/stella_environment_wrapper.hpp +44 -0
  161. ale_py-0.10.1/src/ale/games/CMakeLists.txt +7 -0
  162. ale_py-0.10.1/src/ale/games/RomSettings.cpp +86 -0
  163. ale_py-0.10.1/src/ale/games/RomSettings.hpp +137 -0
  164. ale_py-0.10.1/src/ale/games/RomUtils.cpp +120 -0
  165. ale_py-0.10.1/src/ale/games/RomUtils.hpp +40 -0
  166. ale_py-0.10.1/src/ale/games/Roms.cpp +249 -0
  167. ale_py-0.10.1/src/ale/games/Roms.hpp +30 -0
  168. ale_py-0.10.1/src/ale/games/supported/Adventure.cpp +159 -0
  169. ale_py-0.10.1/src/ale/games/supported/Adventure.hpp +89 -0
  170. ale_py-0.10.1/src/ale/games/supported/AirRaid.cpp +119 -0
  171. ale_py-0.10.1/src/ale/games/supported/AirRaid.hpp +77 -0
  172. ale_py-0.10.1/src/ale/games/supported/Alien.cpp +162 -0
  173. ale_py-0.10.1/src/ale/games/supported/Alien.hpp +100 -0
  174. ale_py-0.10.1/src/ale/games/supported/Amidar.cpp +111 -0
  175. ale_py-0.10.1/src/ale/games/supported/Amidar.hpp +85 -0
  176. ale_py-0.10.1/src/ale/games/supported/Assault.cpp +100 -0
  177. ale_py-0.10.1/src/ale/games/supported/Assault.hpp +81 -0
  178. ale_py-0.10.1/src/ale/games/supported/Asterix.cpp +111 -0
  179. ale_py-0.10.1/src/ale/games/supported/Asterix.hpp +84 -0
  180. ale_py-0.10.1/src/ale/games/supported/Asteroids.cpp +149 -0
  181. ale_py-0.10.1/src/ale/games/supported/Asteroids.hpp +97 -0
  182. ale_py-0.10.1/src/ale/games/supported/Atlantis.cpp +139 -0
  183. ale_py-0.10.1/src/ale/games/supported/Atlantis.hpp +93 -0
  184. ale_py-0.10.1/src/ale/games/supported/Atlantis2.cpp +103 -0
  185. ale_py-0.10.1/src/ale/games/supported/Atlantis2.hpp +84 -0
  186. ale_py-0.10.1/src/ale/games/supported/Backgammon.cpp +181 -0
  187. ale_py-0.10.1/src/ale/games/supported/Backgammon.hpp +78 -0
  188. ale_py-0.10.1/src/ale/games/supported/BankHeist.cpp +147 -0
  189. ale_py-0.10.1/src/ale/games/supported/BankHeist.hpp +97 -0
  190. ale_py-0.10.1/src/ale/games/supported/BasicMath.cpp +117 -0
  191. ale_py-0.10.1/src/ale/games/supported/BasicMath.hpp +73 -0
  192. ale_py-0.10.1/src/ale/games/supported/BattleZone.cpp +158 -0
  193. ale_py-0.10.1/src/ale/games/supported/BattleZone.hpp +93 -0
  194. ale_py-0.10.1/src/ale/games/supported/BeamRider.cpp +121 -0
  195. ale_py-0.10.1/src/ale/games/supported/BeamRider.hpp +87 -0
  196. ale_py-0.10.1/src/ale/games/supported/Berzerk.cpp +150 -0
  197. ale_py-0.10.1/src/ale/games/supported/Berzerk.hpp +93 -0
  198. ale_py-0.10.1/src/ale/games/supported/Blackjack.cpp +100 -0
  199. ale_py-0.10.1/src/ale/games/supported/Blackjack.hpp +70 -0
  200. ale_py-0.10.1/src/ale/games/supported/Bowling.cpp +110 -0
  201. ale_py-0.10.1/src/ale/games/supported/Bowling.hpp +97 -0
  202. ale_py-0.10.1/src/ale/games/supported/Boxing.cpp +112 -0
  203. ale_py-0.10.1/src/ale/games/supported/Boxing.hpp +84 -0
  204. ale_py-0.10.1/src/ale/games/supported/Breakout.cpp +139 -0
  205. ale_py-0.10.1/src/ale/games/supported/Breakout.hpp +99 -0
  206. ale_py-0.10.1/src/ale/games/supported/CMakeLists.txt +107 -0
  207. ale_py-0.10.1/src/ale/games/supported/Carnival.cpp +82 -0
  208. ale_py-0.10.1/src/ale/games/supported/Carnival.hpp +80 -0
  209. ale_py-0.10.1/src/ale/games/supported/Casino.cpp +158 -0
  210. ale_py-0.10.1/src/ale/games/supported/Casino.hpp +75 -0
  211. ale_py-0.10.1/src/ale/games/supported/Centipede.cpp +143 -0
  212. ale_py-0.10.1/src/ale/games/supported/Centipede.hpp +93 -0
  213. ale_py-0.10.1/src/ale/games/supported/ChopperCommand.cpp +158 -0
  214. ale_py-0.10.1/src/ale/games/supported/ChopperCommand.hpp +98 -0
  215. ale_py-0.10.1/src/ale/games/supported/CrazyClimber.cpp +146 -0
  216. ale_py-0.10.1/src/ale/games/supported/CrazyClimber.hpp +97 -0
  217. ale_py-0.10.1/src/ale/games/supported/Crossbow.cpp +131 -0
  218. ale_py-0.10.1/src/ale/games/supported/Crossbow.hpp +73 -0
  219. ale_py-0.10.1/src/ale/games/supported/DarkChambers.cpp +138 -0
  220. ale_py-0.10.1/src/ale/games/supported/DarkChambers.hpp +72 -0
  221. ale_py-0.10.1/src/ale/games/supported/Defender.cpp +153 -0
  222. ale_py-0.10.1/src/ale/games/supported/Defender.hpp +97 -0
  223. ale_py-0.10.1/src/ale/games/supported/DemonAttack.cpp +140 -0
  224. ale_py-0.10.1/src/ale/games/supported/DemonAttack.hpp +98 -0
  225. ale_py-0.10.1/src/ale/games/supported/DonkeyKong.cpp +99 -0
  226. ale_py-0.10.1/src/ale/games/supported/DonkeyKong.hpp +67 -0
  227. ale_py-0.10.1/src/ale/games/supported/DoubleDunk.cpp +198 -0
  228. ale_py-0.10.1/src/ale/games/supported/DoubleDunk.hpp +109 -0
  229. ale_py-0.10.1/src/ale/games/supported/Earthworld.cpp +99 -0
  230. ale_py-0.10.1/src/ale/games/supported/Earthworld.hpp +66 -0
  231. ale_py-0.10.1/src/ale/games/supported/ElevatorAction.cpp +116 -0
  232. ale_py-0.10.1/src/ale/games/supported/ElevatorAction.hpp +83 -0
  233. ale_py-0.10.1/src/ale/games/supported/Enduro.cpp +110 -0
  234. ale_py-0.10.1/src/ale/games/supported/Enduro.hpp +82 -0
  235. ale_py-0.10.1/src/ale/games/supported/Entombed.cpp +112 -0
  236. ale_py-0.10.1/src/ale/games/supported/Entombed.hpp +70 -0
  237. ale_py-0.10.1/src/ale/games/supported/Et.cpp +153 -0
  238. ale_py-0.10.1/src/ale/games/supported/Et.hpp +76 -0
  239. ale_py-0.10.1/src/ale/games/supported/FishingDerby.cpp +103 -0
  240. ale_py-0.10.1/src/ale/games/supported/FishingDerby.hpp +84 -0
  241. ale_py-0.10.1/src/ale/games/supported/FlagCapture.cpp +119 -0
  242. ale_py-0.10.1/src/ale/games/supported/FlagCapture.hpp +71 -0
  243. ale_py-0.10.1/src/ale/games/supported/Freeway.cpp +121 -0
  244. ale_py-0.10.1/src/ale/games/supported/Freeway.hpp +97 -0
  245. ale_py-0.10.1/src/ale/games/supported/Frogger.cpp +120 -0
  246. ale_py-0.10.1/src/ale/games/supported/Frogger.hpp +74 -0
  247. ale_py-0.10.1/src/ale/games/supported/Frostbite.cpp +142 -0
  248. ale_py-0.10.1/src/ale/games/supported/Frostbite.hpp +93 -0
  249. ale_py-0.10.1/src/ale/games/supported/Galaxian.cpp +137 -0
  250. ale_py-0.10.1/src/ale/games/supported/Galaxian.hpp +97 -0
  251. ale_py-0.10.1/src/ale/games/supported/Gopher.cpp +140 -0
  252. ale_py-0.10.1/src/ale/games/supported/Gopher.hpp +100 -0
  253. ale_py-0.10.1/src/ale/games/supported/Gravitar.cpp +168 -0
  254. ale_py-0.10.1/src/ale/games/supported/Gravitar.hpp +96 -0
  255. ale_py-0.10.1/src/ale/games/supported/Hangman.cpp +220 -0
  256. ale_py-0.10.1/src/ale/games/supported/Hangman.hpp +88 -0
  257. ale_py-0.10.1/src/ale/games/supported/HauntedHouse.cpp +148 -0
  258. ale_py-0.10.1/src/ale/games/supported/HauntedHouse.hpp +76 -0
  259. ale_py-0.10.1/src/ale/games/supported/Hero.cpp +141 -0
  260. ale_py-0.10.1/src/ale/games/supported/Hero.hpp +93 -0
  261. ale_py-0.10.1/src/ale/games/supported/HumanCannonball.cpp +136 -0
  262. ale_py-0.10.1/src/ale/games/supported/HumanCannonball.hpp +74 -0
  263. ale_py-0.10.1/src/ale/games/supported/IceHockey.cpp +129 -0
  264. ale_py-0.10.1/src/ale/games/supported/IceHockey.hpp +96 -0
  265. ale_py-0.10.1/src/ale/games/supported/JamesBond.cpp +148 -0
  266. ale_py-0.10.1/src/ale/games/supported/JamesBond.hpp +93 -0
  267. ale_py-0.10.1/src/ale/games/supported/JourneyEscape.cpp +105 -0
  268. ale_py-0.10.1/src/ale/games/supported/JourneyEscape.hpp +87 -0
  269. ale_py-0.10.1/src/ale/games/supported/Kaboom.cpp +85 -0
  270. ale_py-0.10.1/src/ale/games/supported/Kaboom.hpp +65 -0
  271. ale_py-0.10.1/src/ale/games/supported/Kangaroo.cpp +140 -0
  272. ale_py-0.10.1/src/ale/games/supported/Kangaroo.hpp +93 -0
  273. ale_py-0.10.1/src/ale/games/supported/KeystoneKapers.cpp +96 -0
  274. ale_py-0.10.1/src/ale/games/supported/KeystoneKapers.hpp +70 -0
  275. ale_py-0.10.1/src/ale/games/supported/Kingkong.cpp +129 -0
  276. ale_py-0.10.1/src/ale/games/supported/Kingkong.hpp +86 -0
  277. ale_py-0.10.1/src/ale/games/supported/Klax.cpp +166 -0
  278. ale_py-0.10.1/src/ale/games/supported/Klax.hpp +76 -0
  279. ale_py-0.10.1/src/ale/games/supported/Koolaid.cpp +84 -0
  280. ale_py-0.10.1/src/ale/games/supported/Koolaid.hpp +65 -0
  281. ale_py-0.10.1/src/ale/games/supported/Krull.cpp +115 -0
  282. ale_py-0.10.1/src/ale/games/supported/Krull.hpp +81 -0
  283. ale_py-0.10.1/src/ale/games/supported/KungFuMaster.cpp +109 -0
  284. ale_py-0.10.1/src/ale/games/supported/KungFuMaster.hpp +81 -0
  285. ale_py-0.10.1/src/ale/games/supported/LaserGates.cpp +97 -0
  286. ale_py-0.10.1/src/ale/games/supported/LaserGates.hpp +69 -0
  287. ale_py-0.10.1/src/ale/games/supported/LostLuggage.cpp +142 -0
  288. ale_py-0.10.1/src/ale/games/supported/LostLuggage.hpp +80 -0
  289. ale_py-0.10.1/src/ale/games/supported/MarioBros.cpp +137 -0
  290. ale_py-0.10.1/src/ale/games/supported/MarioBros.hpp +76 -0
  291. ale_py-0.10.1/src/ale/games/supported/MiniatureGolf.cpp +159 -0
  292. ale_py-0.10.1/src/ale/games/supported/MiniatureGolf.hpp +76 -0
  293. ale_py-0.10.1/src/ale/games/supported/MontezumaRevenge.cpp +116 -0
  294. ale_py-0.10.1/src/ale/games/supported/MontezumaRevenge.hpp +81 -0
  295. ale_py-0.10.1/src/ale/games/supported/MrDo.cpp +114 -0
  296. ale_py-0.10.1/src/ale/games/supported/MrDo.hpp +74 -0
  297. ale_py-0.10.1/src/ale/games/supported/MsPacman.cpp +154 -0
  298. ale_py-0.10.1/src/ale/games/supported/MsPacman.hpp +93 -0
  299. ale_py-0.10.1/src/ale/games/supported/NameThisGame.cpp +129 -0
  300. ale_py-0.10.1/src/ale/games/supported/NameThisGame.hpp +97 -0
  301. ale_py-0.10.1/src/ale/games/supported/Othello.cpp +143 -0
  302. ale_py-0.10.1/src/ale/games/supported/Othello.hpp +74 -0
  303. ale_py-0.10.1/src/ale/games/supported/Pacman.cpp +142 -0
  304. ale_py-0.10.1/src/ale/games/supported/Pacman.hpp +94 -0
  305. ale_py-0.10.1/src/ale/games/supported/Phoenix.cpp +106 -0
  306. ale_py-0.10.1/src/ale/games/supported/Phoenix.hpp +81 -0
  307. ale_py-0.10.1/src/ale/games/supported/Pitfall.cpp +120 -0
  308. ale_py-0.10.1/src/ale/games/supported/Pitfall.hpp +83 -0
  309. ale_py-0.10.1/src/ale/games/supported/Pitfall2.cpp +122 -0
  310. ale_py-0.10.1/src/ale/games/supported/Pitfall2.hpp +81 -0
  311. ale_py-0.10.1/src/ale/games/supported/Pong.cpp +118 -0
  312. ale_py-0.10.1/src/ale/games/supported/Pong.hpp +96 -0
  313. ale_py-0.10.1/src/ale/games/supported/Pooyan.cpp +129 -0
  314. ale_py-0.10.1/src/ale/games/supported/Pooyan.hpp +93 -0
  315. ale_py-0.10.1/src/ale/games/supported/PrivateEye.cpp +132 -0
  316. ale_py-0.10.1/src/ale/games/supported/PrivateEye.hpp +98 -0
  317. ale_py-0.10.1/src/ale/games/supported/QBert.cpp +124 -0
  318. ale_py-0.10.1/src/ale/games/supported/QBert.hpp +86 -0
  319. ale_py-0.10.1/src/ale/games/supported/RiverRaid.cpp +150 -0
  320. ale_py-0.10.1/src/ale/games/supported/RiverRaid.hpp +92 -0
  321. ale_py-0.10.1/src/ale/games/supported/RoadRunner.cpp +126 -0
  322. ale_py-0.10.1/src/ale/games/supported/RoadRunner.hpp +81 -0
  323. ale_py-0.10.1/src/ale/games/supported/RoboTank.cpp +117 -0
  324. ale_py-0.10.1/src/ale/games/supported/RoboTank.hpp +81 -0
  325. ale_py-0.10.1/src/ale/games/supported/Seaquest.cpp +115 -0
  326. ale_py-0.10.1/src/ale/games/supported/Seaquest.hpp +85 -0
  327. ale_py-0.10.1/src/ale/games/supported/SirLancelot.cpp +89 -0
  328. ale_py-0.10.1/src/ale/games/supported/SirLancelot.hpp +70 -0
  329. ale_py-0.10.1/src/ale/games/supported/Skiing.cpp +103 -0
  330. ale_py-0.10.1/src/ale/games/supported/Skiing.hpp +84 -0
  331. ale_py-0.10.1/src/ale/games/supported/Solaris.cpp +116 -0
  332. ale_py-0.10.1/src/ale/games/supported/Solaris.hpp +81 -0
  333. ale_py-0.10.1/src/ale/games/supported/SpaceInvaders.cpp +143 -0
  334. ale_py-0.10.1/src/ale/games/supported/SpaceInvaders.hpp +99 -0
  335. ale_py-0.10.1/src/ale/games/supported/SpaceWar.cpp +125 -0
  336. ale_py-0.10.1/src/ale/games/supported/SpaceWar.hpp +71 -0
  337. ale_py-0.10.1/src/ale/games/supported/StarGunner.cpp +164 -0
  338. ale_py-0.10.1/src/ale/games/supported/StarGunner.hpp +94 -0
  339. ale_py-0.10.1/src/ale/games/supported/Superman.cpp +110 -0
  340. ale_py-0.10.1/src/ale/games/supported/Superman.hpp +68 -0
  341. ale_py-0.10.1/src/ale/games/supported/Surround.cpp +133 -0
  342. ale_py-0.10.1/src/ale/games/supported/Surround.hpp +87 -0
  343. ale_py-0.10.1/src/ale/games/supported/Tennis.cpp +143 -0
  344. ale_py-0.10.1/src/ale/games/supported/Tennis.hpp +97 -0
  345. ale_py-0.10.1/src/ale/games/supported/Tetris.cpp +112 -0
  346. ale_py-0.10.1/src/ale/games/supported/Tetris.hpp +81 -0
  347. ale_py-0.10.1/src/ale/games/supported/TicTacToe3d.cpp +140 -0
  348. ale_py-0.10.1/src/ale/games/supported/TicTacToe3d.hpp +77 -0
  349. ale_py-0.10.1/src/ale/games/supported/TimePilot.cpp +114 -0
  350. ale_py-0.10.1/src/ale/games/supported/TimePilot.hpp +85 -0
  351. ale_py-0.10.1/src/ale/games/supported/Trondead.cpp +104 -0
  352. ale_py-0.10.1/src/ale/games/supported/Trondead.hpp +68 -0
  353. ale_py-0.10.1/src/ale/games/supported/Turmoil.cpp +119 -0
  354. ale_py-0.10.1/src/ale/games/supported/Turmoil.hpp +76 -0
  355. ale_py-0.10.1/src/ale/games/supported/Tutankham.cpp +132 -0
  356. ale_py-0.10.1/src/ale/games/supported/Tutankham.hpp +93 -0
  357. ale_py-0.10.1/src/ale/games/supported/UpNDown.cpp +111 -0
  358. ale_py-0.10.1/src/ale/games/supported/UpNDown.hpp +88 -0
  359. ale_py-0.10.1/src/ale/games/supported/Venture.cpp +121 -0
  360. ale_py-0.10.1/src/ale/games/supported/Venture.hpp +85 -0
  361. ale_py-0.10.1/src/ale/games/supported/VideoCheckers.cpp +145 -0
  362. ale_py-0.10.1/src/ale/games/supported/VideoCheckers.hpp +75 -0
  363. ale_py-0.10.1/src/ale/games/supported/VideoChess.cpp +163 -0
  364. ale_py-0.10.1/src/ale/games/supported/VideoChess.hpp +93 -0
  365. ale_py-0.10.1/src/ale/games/supported/VideoCube.cpp +277 -0
  366. ale_py-0.10.1/src/ale/games/supported/VideoCube.hpp +77 -0
  367. ale_py-0.10.1/src/ale/games/supported/VideoPinball.cpp +139 -0
  368. ale_py-0.10.1/src/ale/games/supported/VideoPinball.hpp +97 -0
  369. ale_py-0.10.1/src/ale/games/supported/WizardOfWor.cpp +119 -0
  370. ale_py-0.10.1/src/ale/games/supported/WizardOfWor.hpp +85 -0
  371. ale_py-0.10.1/src/ale/games/supported/WordZapper.cpp +157 -0
  372. ale_py-0.10.1/src/ale/games/supported/WordZapper.hpp +74 -0
  373. ale_py-0.10.1/src/ale/games/supported/YarsRevenge.cpp +149 -0
  374. ale_py-0.10.1/src/ale/games/supported/YarsRevenge.hpp +100 -0
  375. ale_py-0.10.1/src/ale/games/supported/Zaxxon.cpp +139 -0
  376. ale_py-0.10.1/src/ale/games/supported/Zaxxon.hpp +93 -0
  377. ale_py-0.10.1/src/ale/python/CMakeLists.txt +78 -0
  378. ale_py-0.10.1/src/ale/python/__init__.py +71 -0
  379. ale_py-0.10.1/src/ale/python/__init__.pyi +169 -0
  380. ale_py-0.10.1/src/ale/python/ale_python_interface.cpp +192 -0
  381. ale_py-0.10.1/src/ale/python/ale_python_interface.hpp +205 -0
  382. ale_py-0.10.1/src/ale/python/env.py +464 -0
  383. ale_py-0.10.1/src/ale/python/py.typed +0 -0
  384. ale_py-0.10.1/src/ale/python/registration.py +201 -0
  385. ale_py-0.10.1/src/ale/python/roms/__init__.py +67 -0
  386. ale_py-0.10.1/src/ale/python/roms/md5.json +110 -0
  387. ale_py-0.10.1/src/ale/python/roms/tetris.bin +0 -0
  388. ale_py-0.10.1/src/ale/version.hpp.in +14 -0
  389. ale_py-0.10.1/vcpkg.json +18 -0
  390. 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()
@@ -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.
@@ -0,0 +1,7 @@
1
+ # MANIFEST.in
2
+ include version.txt
3
+ include vcpkg.json
4
+ include CMakeLists.txt
5
+ recursive-include cmake *
6
+ include scripts/*
7
+ recursive-include src *
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
+ [![Python](https://img.shields.io/pypi/pyversions/ale-py.svg)](https://badge.fury.io/py/ale-py)
41
+ [![PyPI Version](https://img.shields.io/pypi/v/ale-py)](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
+ ```