arcade-learning-environment 0.5.2 (new formula)

Adds the Arcade Learning Environment (ALE). ALE is a framework that
allows researchers and hobbyists to develop AI agents for Atari 2600
games.

- Contains the C++ bindings
- Contains the python bindings

Closes #19857.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
Erwin Jansen 2017-10-25 23:10:32 -07:00 committed by ilovezfs
parent fbadfee8fc
commit 719be81873

View file

@ -0,0 +1,27 @@
class ArcadeLearningEnvironment < Formula
desc "Platform for AI research"
homepage "https://github.com/mgbellemare/Arcade-Learning-Environment"
url "https://github.com/mgbellemare/Arcade-Learning-Environment/archive/v0.5.2.tar.gz"
sha256 "bc158b4fb8edc5034f8f8b4ca1a90d48590f516b33f9edec325fce8762418069"
head "https://github.com/mgbellemare/Arcade-Learning-Environment.git"
depends_on "cmake" => :build
depends_on :python if MacOS.version <= :snow_leopard
depends_on "sdl"
def install
system "cmake", ".", *std_cmake_args
system "make", "install"
system "python", *Language::Python.setup_install_args(prefix)
end
test do
output = shell_output("#{bin}/ale 2>&1", 1).lines.last.chomp
assert_equal "No ROM File specified.", output
(testpath/"test.py").write <<~EOS
from ale_python_interface import ALEInterface;
ale = ALEInterface();
EOS
assert_match "ale.cfg", shell_output("python test.py 2>&1")
end
end