In [6]:
using POMDPs
using POMDPModelTools
using POMDPModels
using POMDPPolicies
using POMDPSimulators
using Random

gw = SimpleGridWorld()

In [9]:
render(gw, (s=[7,6],))


Out[9]:

In [7]:
p = FunctionPolicy(s->:up)
steps = collect(stepthrough(gw, p, max_steps=100, rng=MersenneTwister(3)));
render(gw, first(steps))


Out[7]:

In [5]:
# Below is commented out for testing, but it can be used to explore the history

#=
using Interact

@manipulate for i in 1:length(steps)
    render(gw, steps[i])
end
=#

In [ ]: