Skip to content

Explanation of Examples

bbitmaster edited this page Mar 13, 2015 · 4 revisions

The ale_python_interface contains several demonstration programs in the /examples directory.

The user is encouraged to run these examples as well as read through the code to learn how to use this interface.

ale_python_test1.py This is a direct port to python of the shared library example from ALE provided in doc/examples/sharedLibraryInterfaceExample.cpp

ale_python_test2.py This modifies ale_python_test1.py to do more extensive tests of the python interface by calling more functions

ale_python_test_pygame.py This modified ale_python_test1.py to display screen contents using pygame. Both pygame and sdl are required to run this example.

ale_python_test_pygame_player.py This modifies ale_python_test_pygame.py to provide a fully interactive experience allowing the player to play. RAM Contents, current action, and reward are also displayed. keys are: arrow keys -> up/down/left/right z -> fire button

Sidebar test

Clone this wiki locally