Contents

octadero/atarikit

Please, visit [Arcade Learning Environment](https://github.com/mgbellemare/Arcade-Learning-Environment) repository.

Quick start

Install main dependences:

$ sudo apt-get install libsdl1.2-dev libsdl-gfx1.2-dev libsdl-image1.2-dev cmake

On macOS

$ brew install sdl

Clone ALE

$ git clone https://github.com/mgbellemare/Arcade-Learning-Environment.git

Compilation:

$ cd Arcade-Learning-Environment
$ cmake -DUSE_SDL=ON -DUSE_RLGLUE=OFF -DBUILD_EXAMPLES=OFF
$ make -j 4
$ sudo make install

Swift package

Add to your package dependencies:

dependencies: [
    .package(url: "https://github.com/Octadero/AtariKit.git", from: "0.0.1"),
],

Ubuntu

Call to build

swift build -Xlinker -rpath -Xlinker /usr/local/lib/

Call to launch tests

swift test -Xlinker -rpath -Xlinker /usr/local/lib/

Create game using one of the roms and launch game:

let game = try Environment(romPath: "%pathToSources%/AtariKit/atari-roms/pong.bin")

// do action.
let reward = game.send(action: .playerAleft)

// get RGB dump of screen.
let screen = game.screenRGBBuffer()

// get screen size.
let size = game.screenSize()

// check if game is over.
if game.isOver { }

Package Metadata

Repository: octadero/atarikit

Default branch: master

README: README.md