import{S as se,i as ie,s as ce,e as n,k as A,w as me,t as d,M as pe,c as l,d as t,m as S,a as r,x as de,h as u,b as o,G as a,g as $,y as ue,L as he,q as fe,o as ve,B as _e,v as xe}from"../../chunks/vendor-hf-doc-builder.js";import{I as ge}from"../../chunks/IconCopyLink-hf-doc-builder.js";function ye(W){let i,I,c,p,L,h,M,b,N,O,x,T,q,s,g,f,P,U,B,H,y,v,k,J,R,j,E,_,C,z,F,D;return h=new ge({}),{c(){i=n("meta"),I=A(),c=n("h1"),p=n("a"),L=n("span"),me(h.$$.fragment),M=A(),b=n("span"),N=d("Advanced examples in Simulate"),O=A(),x=n("p"),T=d("These examples showcase complete products of Simulate: challenging and visually appealing examples."),q=A(),s=n("ul"),g=n("li"),f=n("a"),P=n("code"),U=d("cartpole.py"),B=d(": reimplements the famous cartpole example, with parallel execution and rendering."),H=A(),y=n("li"),v=n("a"),k=n("code"),J=d("lunarlander.py"),R=d(": reimplements the famous lunar lander reinforcement learning environment."),j=A(),E=n("li"),_=n("a"),C=n("code"),z=d("mountaincar.py"),F=d(": adds an impressive recreation of the mountain car Gym environment."),this.h()},l(e){const m=pe('[data-svelte="svelte-1phssyn"]',document.head);i=l(m,"META",{name:!0,content:!0}),m.forEach(t),I=S(e),c=l(e,"H1",{class:!0});var G=r(c);p=l(G,"A",{id:!0,class:!0,href:!0});var X=r(p);L=l(X,"SPAN",{});var Y=r(L);de(h.$$.fragment,Y),Y.forEach(t),X.forEach(t),M=S(G),b=l(G,"SPAN",{});var Z=r(b);N=u(Z,"Advanced examples in Simulate"),Z.forEach(t),G.forEach(t),O=S(e),x=l(e,"P",{});var ee=r(x);T=u(ee,"These examples showcase complete products of Simulate: challenging and visually appealing examples."),ee.forEach(t),q=S(e),s=l(e,"UL",{});var w=r(s);g=l(w,"LI",{});var K=r(g);f=l(K,"A",{href:!0,rel:!0});var ae=r(f);P=l(ae,"CODE",{});var te=r(P);U=u(te,"cartpole.py"),te.forEach(t),ae.forEach(t),B=u(K,": reimplements the famous cartpole example, with parallel execution and rendering."),K.forEach(t),H=S(w),y=l(w,"LI",{});var Q=r(y);v=l(Q,"A",{href:!0,rel:!0});var ne=r(v);k=l(ne,"CODE",{});var le=r(k);J=u(le,"lunarlander.py"),le.forEach(t),ne.forEach(t),R=u(Q,": reimplements the famous lunar lander reinforcement learning environment."),Q.forEach(t),j=S(w),E=l(w,"LI",{});var V=r(E);_=l(V,"A",{href:!0,rel:!0});var re=r(_);C=l(re,"CODE",{});var oe=r(C);z=u(oe,"mountaincar.py"),oe.forEach(t),re.forEach(t),F=u(V,": adds an impressive recreation of the mountain car Gym environment."),V.forEach(t),w.forEach(t),this.h()},h(){o(i,"name","hf:doc:metadata"),o(i,"content",JSON.stringify(Ee)),o(p,"id","advanced-examples-in-simulate"),o(p,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),o(p,"href","#advanced-examples-in-simulate"),o(c,"class","relative group"),o(f,"href","https://github.com/huggingface/simulate/examples/advanced/cartpole.py"),o(f,"rel","nofollow"),o(v,"href","https://github.com/huggingface/simulate/examples/advanced/lunarlander.py"),o(v,"rel","nofollow"),o(_,"href","https://github.com/huggingface/simulate/examples/advanced/mountaincar.py"),o(_,"rel","nofollow")},m(e,m){a(document.head,i),$(e,I,m),$(e,c,m),a(c,p),a(p,L),ue(h,L,null),a(c,M),a(c,b),a(b,N),$(e,O,m),$(e,x,m),a(x,T),$(e,q,m),$(e,s,m),a(s,g),a(g,f),a(f,P),a(P,U),a(g,B),a(s,H),a(s,y),a(y,v),a(v,k),a(k,J),a(y,R),a(s,j),a(s,E),a(E,_),a(_,C),a(C,z),a(E,F),D=!0},p:he,i(e){D||(fe(h.$$.fragment,e),D=!0)},o(e){ve(h.$$.fragment,e),D=!1},d(e){t(i),e&&t(I),e&&t(c),_e(h),e&&t(O),e&&t(x),e&&t(q),e&&t(s)}}}const Ee={local:"advanced-examples-in-simulate",title:"Advanced examples in Simulate"};function we(W){return xe(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class $e extends se{constructor(i){super();ie(this,i,we,ye,ce,{})}}export{$e as default,Ee as metadata};
