Skip to content

Commit

Permalink
renamed ale rle
Browse files Browse the repository at this point in the history
  • Loading branch information
nadavbh12 committed Nov 2, 2016
1 parent b206abc commit 6ef4e1a
Show file tree
Hide file tree
Showing 105 changed files with 1,188 additions and 2,382 deletions.
47 changes: 21 additions & 26 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
cmake_minimum_required (VERSION 3.02)
project(ale)
project(rle)

option(USE_SDL "Use SDL" OFF)
option(USE_RLGLUE "Use RL-Glue" OFF)
option(BUILD_EXAMPLES "Build Example Agents" ON)
option(DEBUG "Suspend optimization & enable debugging" OFF)
option(UNIT_TESTING "Build unit tests using Google Test" OFF)
Expand Down Expand Up @@ -67,7 +66,7 @@ endif()
if(WINDOWS OR MINGW)
list(APPEND SOURCES ${SOURCE_DIR}/os_dependent/SettingsWin32.cxx ${SOURCE_DIR}/os_dependent/OSystemWin32.cxx ${SOURCE_DIR}/os_dependent/FSNodeWin32.cxx)
else()
list(APPEND SOURCES ${SOURCE_DIR}/os_dependent/SettingsUNIX.cxx ${SOURCE_DIR}/os_dependent/AleSystemUNIX.cxx ${SOURCE_DIR}/os_dependent/FSNodePOSIX.cxx)
list(APPEND SOURCES ${SOURCE_DIR}/os_dependent/SettingsUNIX.cxx ${SOURCE_DIR}/os_dependent/RleSystemUNIX.cxx ${SOURCE_DIR}/os_dependent/FSNodePOSIX.cxx)
endif()

if(UNIX)
Expand All @@ -86,7 +85,7 @@ include_directories(
${SOURCE_DIR}/external/TinyMT
)

set(INCDIR "${CMAKE_INSTALL_PREFIX}/include/ale")
set(INCDIR "${CMAKE_INSTALL_PREFIX}/include/rle")
set(LIBDIR "${CMAKE_INSTALL_PREFIX}/lib")

MESSAGE(STATUS "INCLUDE_DIR ${INCDIR}")
Expand Down Expand Up @@ -126,37 +125,33 @@ ExternalProject_add(stella_libretro
INSTALL_COMMAND "${STELLA_INSTALL_COMMAND}"
)

add_library(ale-lib SHARED ${SOURCE_DIR}/ale_interface.cpp ${SOURCES})
set_target_properties(ale-lib PROPERTIES OUTPUT_NAME ale)
set_target_properties(ale-lib PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
add_dependencies(ale-lib snes9x2010_libretro)
add_dependencies(ale-lib stella_libretro)
add_executable(ale-bin ${SOURCE_DIR}/main.cpp ${SOURCE_DIR}/ale_interface.cpp ${SOURCES})
set_target_properties(ale-bin PROPERTIES OUTPUT_NAME ale)
set_target_properties(ale-bin PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
add_library(ale-c-lib SHARED ${CMAKE_CURRENT_SOURCE_DIR}/ale_python_interface/ale_c_wrapper.cpp ${SOURCE_DIR}/ale_interface.cpp ${SOURCES})
set_target_properties(ale-c-lib PROPERTIES OUTPUT_NAME ale_c)
set_target_properties(ale-c-lib PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ale_python_interface)

target_link_libraries(ale-lib ${LINK_LIBS})
target_link_libraries(ale-bin ${LINK_LIBS})
target_link_libraries(ale-c-lib ${LINK_LIBS})
add_library(rle-lib SHARED ${SOURCE_DIR}/rle_interface.cpp ${SOURCES})
set_target_properties(rle-lib PROPERTIES OUTPUT_NAME rle)
set_target_properties(rle-lib PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
add_dependencies(rle-lib snes9x2010_libretro)
add_dependencies(rle-lib stella_libretro)
add_library(rle-c-lib SHARED ${CMAKE_CURRENT_SOURCE_DIR}/rle_python_interface/rle_c_wrapper.cpp ${SOURCE_DIR}/rle_interface.cpp ${SOURCES})
set_target_properties(rle-c-lib PROPERTIES OUTPUT_NAME rle_c)
set_target_properties(rle-c-lib PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/rle_python_interface)

target_link_libraries(rle-lib ${LINK_LIBS})
target_link_libraries(rle-c-lib ${LINK_LIBS})

IF(INSTALL_CORES)
INSTALL(
FILES
src/ale_interface.hpp
src/rle_interface.hpp
src/libretro.h
DESTINATION "${INCDIR}"
)

IF(APPLE)
INSTALL(FILES
libale.a
librle.a
DESTINATION "${LIBDIR}")
ELSE()
INSTALL(FILES
libale.so
librle.so
DESTINATION "${LIBDIR}")
ENDIF()
ENDIF()
Expand All @@ -165,9 +160,9 @@ if(BUILD_EXAMPLES)
link_directories(${CMAKE_CURRENT_SOURCE_DIR})
add_executable(sharedLibraryInterfaceExample ${CMAKE_CURRENT_SOURCE_DIR}/doc/examples/sharedLibraryInterfaceExample.cpp)
set_target_properties(sharedLibraryInterfaceExample PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/doc/examples)
target_link_libraries(sharedLibraryInterfaceExample ale)
target_link_libraries(sharedLibraryInterfaceExample rle)
target_link_libraries(sharedLibraryInterfaceExample ${LINK_LIBS})
add_dependencies(sharedLibraryInterfaceExample ale-lib)
add_dependencies(sharedLibraryInterfaceExample rle-lib)

endif()

Expand Down Expand Up @@ -202,7 +197,7 @@ if(UNIT_TESTING)
add_definitions(-D__UNIT_TESTING)
add_subdirectory(googletest)
enable_testing()
include_directories(${GTEST_INCLUDE_DIRS} ${CMAKE_CURRENT_SOURCE_DIR}/ale_python_interface)
include_directories(${GTEST_INCLUDE_DIRS} ${CMAKE_CURRENT_SOURCE_DIR}/rle_python_interface)

file(GLOB test_sources test/*.cpp)
list(APPEND TEST_SOURCES ${test_sources})
Expand All @@ -211,6 +206,6 @@ if(UNIT_TESTING)
add_executable( mainTest ${TEST_SOURCES})

# Link test executable against gtest & gtest_main
target_link_libraries(mainTest gtest gtest_main ale ale-c-lib)
target_link_libraries(mainTest gtest gtest_main rle rle-c-lib)
add_test( mainTest mainTest )
endif()
31 changes: 4 additions & 27 deletions Readme.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
This is version 0.1 of the Retro Learning Environment (RLE), based upon ALE,
see below for more details.

==============================
This is the 0.5 release of the Arcade Learning Environment (ALE), a platform
designed for AI research. ALE is based on Stella, an Atari 2600 VCS emulator.
More information and ALE-related publications can be found at
Expand All @@ -14,33 +18,6 @@ of the ALE team.
Enjoy,
The ALE team

===============================
List of command-line parameters
===============================

Execute ./ale -help for more details; alternatively, see documentation
available at http://www.arcadelearningenvironment.org.

-random_seed [n] -- sets the random seed; defaults to the current time

-game_controller [fifo|fifo_named] -- specifies how agents interact
with ALE; see Java agent documentation for details

-config [file] -- specifies a configuration file, from which additional
parameters are read

-run_length_encoding [false|true] -- determine whether run-length encoding is
used to send data over pipes; irrelevant when an internal agent is
being used

-max_num_frames_per_episode [n] -- sets the maximum number of frames per
episode. Once this number is reached, a new episode will start. Currently
implemented for all agents when using pipes (fifo/fifo_named)

-max_num_frames [n] -- sets the maximum number of frames (independent of how
many episodes are played)


=====================================
Citing The Arcade Learning Environment: An Evaluation Platform for
General Agents
Expand Down
20 changes: 0 additions & 20 deletions ale-2-0.rockspec

This file was deleted.

1 change: 0 additions & 1 deletion ale_python_interface/__init__.py

This file was deleted.

68 changes: 0 additions & 68 deletions ale_python_interface/ale_c_wrapper.cpp

This file was deleted.

65 changes: 0 additions & 65 deletions ale_python_interface/ale_c_wrapper.h

This file was deleted.

Loading

0 comments on commit 6ef4e1a

Please sign in to comment.