A modified C++ implementation of the Craftworld environment from Modular Multitask Reinforcement Learning with Policy Sketches. Andreas, J., Klein, D. & Levine, S.. (2017). Modular Multitask Reinforcement Learning with Policy Sketches. Proceedings of the 34th International Conference on Machine Learning, in Proceedings of Machine Learning Research.
include(FetchContent)
# ...
FetchContent_Declare(craftworld
GIT_REPOSITORY https://github.com/tuero/craftworld_cpp.git
GIT_TAG master
)
# make available
FetchContent_MakeAvailable(craftworld)
link_libraries(craftworld)
# assumes project is cloned into external/craftworld_cpp
add_subdirectory(external/craftworld_cpp)
link_libraries(craftworld)
The levelset generator will generate a curriculum of levels to gather the gem ring: make a bronze pick, make an iron pick, and collect the gem ring.
cd scripts
python generate_levelset.py --export_path=EXPORT_PATH --map_size=14 --num_train=50000 --num_test=1000 --num_grass=2