This package is a Julia wrapper for the ArcadeLearningEnvironment (ALE).
This is the maintained fork that is in the official Julia registry.
For a higher level access to ALE see ReinforcementLearningEnvironments.
ALE is a modified emulator for the Atari 2600 that can emulate more than 50 games with additional access to game state information and in-game rewards. This is useful for learning and benchmarking artificial intelligence agents playing computer games.
If you use this package for research publications, please cite the following paper to acknowledge the work that went into ALE.
@ARTICLE{bellemare13arcade,
author = {{Bellemare}, M.~G. and {Naddaf}, Y. and {Veness}, J. and {Bowling}, M.},
title = {The Arcade Learning Environment: An Evaluation Platform for General Agents},
journal = {Journal of Artificial Intelligence Research},
year = 2013,
month = 06,
volume = 47,
pages = {253--279}
}
The package automatically downloads version 0.6.1 of the ArcadeLearningEnvironment and the ROMS from www.atarimania.com.
Pkg.add("ArcadeLearningEnvironment")
using ArcadeLearningEnvironment
getROMList()
episodes = 50
ale = ALE_new()
loadROM(ale, "seaquest")
S = zeros(Int64, episodes)
TR = zeros(episodes)
for ei = 1:episodes
ctr = 0.0
fc = 0
while game_over(ale) == false
actions = getLegalActionSet(ale)
ctr += act(ale, actions[rand(1:length(actions))])
fc += 1
end
reset_game(ale)
println("Game $ei ended after $fc frames with total reward $(ctr).")
S[ei] = fc
TR[ei] = ctr
end
ALE_del(ale)