Skip to content
Gym environments in Julia
Branch: master
Clone or download
Latest commit f68b6cb Apr 12, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets fix visualisation Mar 1, 2019
examples/CartPole CartPole now uses the Spaces Apr 7, 2019
src Delete Acrobot.jl Apr 8, 2019
.DS_Store Rewrote CartPoleEnv based on the created classes and updated main module Mar 29, 2019
LICENSE
Manifest.toml
Project.toml spelling Apr 11, 2019
README.md

README.md

Gym.jl

Gym environments in Julia

Installation

julia> ] add https://github.com/FluxML/Gym.jl

Usage

env = CartPoleEnv()
ctx = Ctx(env)

display(ctx.s)

# using Blink # when not on Juno
# body!(Blink.Window(), ctx.s)

actions = rand(1:2, 1000)
i = 1
done = false
reset!(env)
while i <= length(actions) && !done
    global i, done
    a, b, done, d = step!(env, actions[i])
    render(env, ctx)
    i += 1
    # sleep(0.4) # to see an animation
end
You can’t perform that action at this time.