/span>$<span class='fu'>reset</span>()</div><div class='output co'>#&gt; [1] 0</div><div class='input'><span class='no'>env</span>$<span class='fu'>step</span>(<span class='fl'>1L</span>)</div><div class='output co'>#&gt; $state
#&gt; [1] 1
#&gt; 
#&gt; $reward
#&gt; [1] 10
#&gt; 
#&gt; $done
#&gt; [1] TRUE
#&gt; </div><div class='input'>
<span class='co'># Create a Gridworld.</span>
<span class='no'>grid</span> <span class='kw'>=</span> <span class='fu'>makeEnvironment</span>(<span class='st'>"gridworld"</