Crates.io | ale |
lib.rs | ale |
version | 0.1.3 |
source | src |
created_at | 2020-02-07 18:01:48.834043 |
updated_at | 2020-05-06 18:40:48.621516 |
description | A Rust encapsulation of the Arcade Learning Environment |
homepage | https://github.com/trolleyman/ale-rs |
repository | https://github.com/trolleyman/ale-rs |
max_upload_size | |
id | 205911 |
size | 426,215 |
ale
A Rust interface to the Arcade Learning Environment.
Some games such as Breakout, Asteroids, MsPacman and Space Invaders are bundled into the libarary, so that anyone using it can run them. A full list is at https://github.com/trolleyman/ale-rs/blob/master/src/lib.rs#L353-L430.
For an example of the Atari playing Breakout, run this command:
cargo run --release --example breakout
Controls:
ale-sys
Rust bindings to the Arcade Learning Environment, with a few tweaks. See https://github.com/trolleyman/Arcade-Learning-Environment.
Differences:
zlib
is vendored so that compilation is easierxtask
xtask
is a small sub-project used for development. Subcommands can be run by running cargo xtask <subcommand>
in the root of the repository.
There are two subcommands: gen-bindings
and download-roms
.
gen-bindings
generates the ale-sys/src/bindings.rs
file, and requires clang to be installed.
download-roms
downloads the bundled Atari ROMs and outputs them in the roms/
folder, that is then included in the binary via. include_bytes!
. This is meant to protect me against copyright infringement. It's a similar technique used by atari-py
.