an> <span class='no'>Agent</span>$<span class='fu'>new</span>(<span class='no'>policy</span>, <span class='no'>bandit</span>)

<span class='no'>simulation</span>  <span class='kw'>&lt;-</span>
  <span class='no'>Simulator</span>$<span class='fu'>new</span>(
    <span class='no'>agent</span>,
    <span class='kw'>horizon</span> <span class='kw'>=</span> <span class='no'>horizon</span>,
    <span class='kw'>simulations</span> <span class='kw'>=</span> <span class='no'>simulations</span>,
    <span class='kw'>