import{s as yt,a as Oe,n as bt,o as $t}from"../chunks/scheduler.ef843396.js";import{S as xt,i as Ct,e as r,s as n,c as m,q as _t,h as Lt,a as s,d as i,b as l,f as wt,g as f,j as o,r as Mt,k as p,l as Pt,m as a,n as u,t as h,o as c,p as g}from"../chunks/index.05ef1181.js";import{H as v,E as Tt}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.ef6649bf.js";function kt(Fe){let d,ae,te,ne,w,le,y,We="Here we provide a list of interesting environments you can try to train your agents on:",re,b,se,$,Ke,oe,x,Qe="DIAMBRA Arena is a software package featuring a collection of high-quality environments for Reinforcement Learning research and experimentation. It provides a standard interface to popular arcade emulated video games, offering a Python API fully compliant with OpenAI Gym/Gymnasium format, that makes its adoption smooth and straightforward.",me,C,Ye='It supports all major Operating Systems (Linux, Windows and MacOS) and can be easily installed via <a href="https://pypi.org/project/diambra-arena/" rel="nofollow">Python PIP</a>. It is completely free to use, the user only needs to register on the <a href="https://diambra.ai/register/" rel="nofollow">official website</a>.',fe,_,Je='In addition, its <a href="https://github.com/diambra/" rel="nofollow">GitHub repository</a> provides a collection of examples covering main use cases of interest that can be run in just a few steps.',pe,L,ue,M,Ne="All environments are episodic Reinforcement Learning tasks, with discrete actions (gamepad buttons) and observations composed by screen pixels plus additional numerical data (RAM values like characters health bars or characters stage side).",he,P,Ve="They all support both single player (1P) as well as two players (2P) mode, making them the perfect resource to explore Standard RL, Competitive Multi-Agent, Competitive Human-Agent, Self-Play, Imitation Learning and Human-in-the-Loop.",ce,T,Xe='<a href="https://docs.diambra.ai/envs/games/" rel="nofollow">Interfaced games</a> have been selected among the most popular fighting retro-games. While sharing the same fundamental mechanics, they provide different challenges, with specific features such as different type and number of characters, how to perform combos, health bars recharging, etc.',ge,k,Ze='DIAMBRA Arena is built to maximize compatibility will all major Reinforcement Learning libraries. It natively provides interfaces with the two most important packages: <a href="https://stable-baselines3.readthedocs.io/en/master/" rel="nofollow">Stable Baselines 3</a> and <a href="https://docs.ray.io/en/latest/rllib/index.html" rel="nofollow">Ray RLlib</a>, while Stable Baselines is also available but deprecated. Their usage is illustrated in the <a href="https://docs.diambra.ai/" rel="nofollow">official documentation</a> and in the <a href="https://github.com/diambra/agents" rel="nofollow">DIAMBRA Agents examples repository</a>. It can easily be interfaced with any other package in a similar way.',de,I,ve,A,et="DIAMBRA also provides a competition platform fully integrated with the Hugging Face Hub, on which you can submit your trained agents and compete with other coders around the globe in epic video games tournaments!",we,H,tt="It features a public leaderboard where users are ranked by the best score achieved by their agents in our different environments.",ye,R,it="It also offers the possibility to unlock cool achievements depending on the performances of your agent.",be,S,at='Submitted agents are evaluated and their episodes are streamed on <a href="https://www.twitch.tv/diambra_ai" rel="nofollow">DIAMBRA Twitch channel</a>.',$e,D,xe,q,nt="To start using this environment, check these resources:",Ce,j,lt='<li><a href="https://docs.diambra.ai/" rel="nofollow">Official Docs</a></li> <li><a href="https://diambra.ai" rel="nofollow">Competition Platform</a></li> <li><a href="https://github.com/diambra/" rel="nofollow">GitHub</a></li> <li><a href="https://diambra.ai/discord" rel="nofollow">Discord</a></li>',_e,E,Le,G,rt,Me,B,st=`MineRL is a Python library that provides a Gym interface for interacting with the video game Minecraft, accompanied by datasets of human gameplay.
Every year there are challenges with this library. Check the <a href="https://minerl.io/" rel="nofollow">website</a>`,Pe,U,ot="To start using this environment, check these resources:",Te,z,mt='<li><a href="https://www.youtube.com/watch?v=z6PTrGifupU" rel="nofollow">What is MineRL?</a></li> <li><a href="https://www.youtube.com/watch?v=8yIrWcyWGek" rel="nofollow">First steps in MineRL</a></li> <li><a href="https://minerl.readthedocs.io/en/latest/" rel="nofollow">MineRL documentation and tutorials</a></li>',ke,O,Ie,F,ft,Ae,W,pt="To start using this environment, check these resources:",He,K,ut='<li><p><a href="https://docs.donkeycar.com/guide/deep_learning/simulator/" rel="nofollow">DonkeyCar Simulator documentation</a></p></li> <li><p><a href="https://www.youtube.com/watch?v=ngK33h00iBE" rel="nofollow">Learn to Drive Smoothly (Antonin Raffin’s tutorial) Part 1</a></p></li> <li><p><a href="https://www.youtube.com/watch?v=DUqssFvcSOY" rel="nofollow">Learn to Drive Smoothly (Antonin Raffin’s tutorial) Part 2</a></p></li> <li><p><a href="https://www.youtube.com/watch?v=v8j2bpcE4Rg" rel="nofollow">Learn to Drive Smoothly (Antonin Raffin’s tutorial) Part 3</a></p></li> <li><p>Pretrained agents:</p> <ul><li><a href="https://huggingface.co/araffin/tqc-donkey-mountain-track-v0" rel="nofollow">https://huggingface.co/araffin/tqc-donkey-mountain-track-v0</a></li> <li><a href="https://huggingface.co/araffin/tqc-donkey-avc-sparkfun-v0" rel="nofollow">https://huggingface.co/araffin/tqc-donkey-avc-sparkfun-v0</a></li> <li><a href="https://huggingface.co/araffin/tqc-donkey-minimonaco-track-v0" rel="nofollow">https://huggingface.co/araffin/tqc-donkey-minimonaco-track-v0</a></li></ul></li>',Re,Q,Se,Y,ht,De,J,ct='Starcraft II is a famous <em>real-time strategy game</em>. DeepMind has used this game for their Deep Reinforcement Learning research with <a href="https://www.deepmind.com/blog/alphastar-mastering-the-real-time-strategy-game-starcraft-ii" rel="nofollow">Alphastar</a>',qe,N,gt="To start using this environment, check these resources:",je,V,dt='<li><a href="http://starcraftgym.com/" rel="nofollow">Starcraft gym</a></li> <li><a href="https://www.youtube.com/watch?v=q59wap1ELQ4" rel="nofollow">A. I. Learns to Play Starcraft 2 (Reinforcement Learning) tutorial</a></li>',Ee,X,Ge,Z,vt='This section was written by <a href="https://twitter.com/ThomasSimonini">Thomas Simonini</a>',Be,ee,Ue,ie,ze;return w=new v({props:{title:"Interesting Environments to try",local:"interesting-environments-to-try",headingTag:"h1"}}),b=new v({props:{title:"DIAMBRA Arena",local:"diambra-arena",headingTag:"h2"}}),L=new v({props:{title:"Main Features",local:"main-features",headingTag:"h4"}}),I=new v({props:{title:"Competition Platform",local:"competition-platform",headingTag:"h3"}}),D=new v({props:{title:"References",local:"references",headingTag:"h4"}}),E=new v({props:{title:"MineRL",local:"minerl",headingTag:"h2"}}),O=new v({props:{title:"DonkeyCar Simulator",local:"donkeycar-simulator",headingTag:"h2"}}),Q=new v({props:{title:"Starcraft II",local:"starcraft-ii",headingTag:"h2"}}),X=new v({props:{title:"Author",local:"author",headingTag:"h2"}}),ee=new Tt({props:{source:"https://github.com/huggingface/deep-rl-class/blob/main/units/en/unitbonus3/envs-to-try.mdx"}}),{c(){d=r("meta"),ae=n(),te=r("p"),ne=n(),m(w.$$.fragment),le=n(),y=r("p"),y.textContent=We,re=n(),m(b.$$.fragment),se=n(),$=r("img"),oe=n(),x=r("p"),x.textContent=Qe,me=n(),C=r("p"),C.innerHTML=Ye,fe=n(),_=r("p"),_.innerHTML=Je,pe=n(),m(L.$$.fragment),ue=n(),M=r("p"),M.textContent=Ne,he=n(),P=r("p"),P.textContent=Ve,ce=n(),T=r("p"),T.innerHTML=Xe,ge=n(),k=r("p"),k.innerHTML=Ze,de=n(),m(I.$$.fragment),ve=n(),A=r("p"),A.textContent=et,we=n(),H=r("p"),H.textContent=tt,ye=n(),R=r("p"),R.textContent=it,be=n(),S=r("p"),S.innerHTML=at,$e=n(),m(D.$$.fragment),xe=n(),q=r("p"),q.textContent=nt,Ce=n(),j=r("ul"),j.innerHTML=lt,_e=n(),m(E.$$.fragment),Le=n(),G=r("img"),Me=n(),B=r("p"),B.innerHTML=st,Pe=n(),U=r("p"),U.textContent=ot,Te=n(),z=r("ul"),z.innerHTML=mt,ke=n(),m(O.$$.fragment),Ie=n(),F=r("img"),Ae=_t(`
Donkey is a Self Driving Car Platform for hobby remote control cars.
This simulator version is built on the Unity game platform. It uses their internal physics and graphics and connects to a donkey Python process to use our trained model to control the simulated Donkey (car).
`),W=r("p"),W.textContent=pt,He=n(),K=r("ul"),K.innerHTML=ut,Re=n(),m(Q.$$.fragment),Se=n(),Y=r("img"),De=n(),J=r("p"),J.innerHTML=ct,qe=n(),N=r("p"),N.textContent=gt,je=n(),V=r("ul"),V.innerHTML=dt,Ee=n(),m(X.$$.fragment),Ge=n(),Z=r("p"),Z.innerHTML=vt,Be=n(),m(ee.$$.fragment),Ue=n(),ie=r("p"),this.h()},l(e){const t=Lt("svelte-u9bgzb",document.head);d=s(t,"META",{name:!0,content:!0}),t.forEach(i),ae=l(e),te=s(e,"P",{}),wt(te).forEach(i),ne=l(e),f(w.$$.fragment,e),le=l(e),y=s(e,"P",{"data-svelte-h":!0}),o(y)!=="svelte-1sc0z4o"&&(y.textContent=We),re=l(e),f(b.$$.fragment,e),se=l(e),$=s(e,"IMG",{src:!0,alt:!0}),oe=l(e),x=s(e,"P",{"data-svelte-h":!0}),o(x)!=="svelte-1xk88eg"&&(x.textContent=Qe),me=l(e),C=s(e,"P",{"data-svelte-h":!0}),o(C)!=="svelte-1gbedw7"&&(C.innerHTML=Ye),fe=l(e),_=s(e,"P",{"data-svelte-h":!0}),o(_)!=="svelte-e4uji4"&&(_.innerHTML=Je),pe=l(e),f(L.$$.fragment,e),ue=l(e),M=s(e,"P",{"data-svelte-h":!0}),o(M)!=="svelte-1zkqfu"&&(M.textContent=Ne),he=l(e),P=s(e,"P",{"data-svelte-h":!0}),o(P)!=="svelte-1klwvp4"&&(P.textContent=Ve),ce=l(e),T=s(e,"P",{"data-svelte-h":!0}),o(T)!=="svelte-199a7jm"&&(T.innerHTML=Xe),ge=l(e),k=s(e,"P",{"data-svelte-h":!0}),o(k)!=="svelte-1d4w6sb"&&(k.innerHTML=Ze),de=l(e),f(I.$$.fragment,e),ve=l(e),A=s(e,"P",{"data-svelte-h":!0}),o(A)!=="svelte-w8r04o"&&(A.textContent=et),we=l(e),H=s(e,"P",{"data-svelte-h":!0}),o(H)!=="svelte-9cd1v"&&(H.textContent=tt),ye=l(e),R=s(e,"P",{"data-svelte-h":!0}),o(R)!=="svelte-14cvuqx"&&(R.textContent=it),be=l(e),S=s(e,"P",{"data-svelte-h":!0}),o(S)!=="svelte-1fe7qoz"&&(S.innerHTML=at),$e=l(e),f(D.$$.fragment,e),xe=l(e),q=s(e,"P",{"data-svelte-h":!0}),o(q)!=="svelte-nbb3hy"&&(q.textContent=nt),Ce=l(e),j=s(e,"UL",{"data-svelte-h":!0}),o(j)!=="svelte-td9lwm"&&(j.innerHTML=lt),_e=l(e),f(E.$$.fragment,e),Le=l(e),G=s(e,"IMG",{src:!0,alt:!0}),Me=l(e),B=s(e,"P",{"data-svelte-h":!0}),o(B)!=="svelte-11lnyw2"&&(B.innerHTML=st),Pe=l(e),U=s(e,"P",{"data-svelte-h":!0}),o(U)!=="svelte-nbb3hy"&&(U.textContent=ot),Te=l(e),z=s(e,"UL",{"data-svelte-h":!0}),o(z)!=="svelte-108l0bw"&&(z.innerHTML=mt),ke=l(e),f(O.$$.fragment,e),Ie=l(e),F=s(e,"IMG",{src:!0,alt:!0}),Ae=Mt(e,`
Donkey is a Self Driving Car Platform for hobby remote control cars.
This simulator version is built on the Unity game platform. It uses their internal physics and graphics and connects to a donkey Python process to use our trained model to control the simulated Donkey (car).
`),W=s(e,"P",{"data-svelte-h":!0}),o(W)!=="svelte-nbb3hy"&&(W.textContent=pt),He=l(e),K=s(e,"UL",{"data-svelte-h":!0}),o(K)!=="svelte-1wy7c3v"&&(K.innerHTML=ut),Re=l(e),f(Q.$$.fragment,e),Se=l(e),Y=s(e,"IMG",{src:!0,alt:!0}),De=l(e),J=s(e,"P",{"data-svelte-h":!0}),o(J)!=="svelte-jtizgn"&&(J.innerHTML=ct),qe=l(e),N=s(e,"P",{"data-svelte-h":!0}),o(N)!=="svelte-nbb3hy"&&(N.textContent=gt),je=l(e),V=s(e,"UL",{"data-svelte-h":!0}),o(V)!=="svelte-1jl391k"&&(V.innerHTML=dt),Ee=l(e),f(X.$$.fragment,e),Ge=l(e),Z=s(e,"P",{"data-svelte-h":!0}),o(Z)!=="svelte-at23v5"&&(Z.innerHTML=vt),Be=l(e),f(ee.$$.fragment,e),Ue=l(e),ie=s(e,"P",{}),wt(ie).forEach(i),this.h()},h(){p(d,"name","hf:doc:metadata"),p(d,"content",It),Oe($.src,Ke="https://huggingface.co/datasets/huggingface-deep-rl-course/course-images/resolve/main/en/unit12/diambraarena.png")||p($,"src",Ke),p($,"alt","diambraArena"),Oe(G.src,rt="https://huggingface.co/datasets/huggingface-deep-rl-course/course-images/resolve/main/en/unit12/minerl.jpg")||p(G,"src",rt),p(G,"alt","MineRL"),Oe(F.src,ft="https://huggingface.co/datasets/huggingface-deep-rl-course/course-images/resolve/main/en/unit12/donkeycar.jpg")||p(F,"src",ft),p(F,"alt","Donkey Car"),Oe(Y.src,ht="https://huggingface.co/datasets/huggingface-deep-rl-course/course-images/resolve/main/en/unit12/alphastar.jpg")||p(Y,"src",ht),p(Y,"alt","Alphastar")},m(e,t){Pt(document.head,d),a(e,ae,t),a(e,te,t),a(e,ne,t),u(w,e,t),a(e,le,t),a(e,y,t),a(e,re,t),u(b,e,t),a(e,se,t),a(e,$,t),a(e,oe,t),a(e,x,t),a(e,me,t),a(e,C,t),a(e,fe,t),a(e,_,t),a(e,pe,t),u(L,e,t),a(e,ue,t),a(e,M,t),a(e,he,t),a(e,P,t),a(e,ce,t),a(e,T,t),a(e,ge,t),a(e,k,t),a(e,de,t),u(I,e,t),a(e,ve,t),a(e,A,t),a(e,we,t),a(e,H,t),a(e,ye,t),a(e,R,t),a(e,be,t),a(e,S,t),a(e,$e,t),u(D,e,t),a(e,xe,t),a(e,q,t),a(e,Ce,t),a(e,j,t),a(e,_e,t),u(E,e,t),a(e,Le,t),a(e,G,t),a(e,Me,t),a(e,B,t),a(e,Pe,t),a(e,U,t),a(e,Te,t),a(e,z,t),a(e,ke,t),u(O,e,t),a(e,Ie,t),a(e,F,t),a(e,Ae,t),a(e,W,t),a(e,He,t),a(e,K,t),a(e,Re,t),u(Q,e,t),a(e,Se,t),a(e,Y,t),a(e,De,t),a(e,J,t),a(e,qe,t),a(e,N,t),a(e,je,t),a(e,V,t),a(e,Ee,t),u(X,e,t),a(e,Ge,t),a(e,Z,t),a(e,Be,t),u(ee,e,t),a(e,Ue,t),a(e,ie,t),ze=!0},p:bt,i(e){ze||(h(w.$$.fragment,e),h(b.$$.fragment,e),h(L.$$.fragment,e),h(I.$$.fragment,e),h(D.$$.fragment,e),h(E.$$.fragment,e),h(O.$$.fragment,e),h(Q.$$.fragment,e),h(X.$$.fragment,e),h(ee.$$.fragment,e),ze=!0)},o(e){c(w.$$.fragment,e),c(b.$$.fragment,e),c(L.$$.fragment,e),c(I.$$.fragment,e),c(D.$$.fragment,e),c(E.$$.fragment,e),c(O.$$.fragment,e),c(Q.$$.fragment,e),c(X.$$.fragment,e),c(ee.$$.fragment,e),ze=!1},d(e){e&&(i(ae),i(te),i(ne),i(le),i(y),i(re),i(se),i($),i(oe),i(x),i(me),i(C),i(fe),i(_),i(pe),i(ue),i(M),i(he),i(P),i(ce),i(T),i(ge),i(k),i(de),i(ve),i(A),i(we),i(H),i(ye),i(R),i(be),i(S),i($e),i(xe),i(q),i(Ce),i(j),i(_e),i(Le),i(G),i(Me),i(B),i(Pe),i(U),i(Te),i(z),i(ke),i(Ie),i(F),i(Ae),i(W),i(He),i(K),i(Re),i(Se),i(Y),i(De),i(J),i(qe),i(N),i(je),i(V),i(Ee),i(Ge),i(Z),i(Be),i(Ue),i(ie)),i(d),g(w,e),g(b,e),g(L,e),g(I,e),g(D,e),g(E,e),g(O,e),g(Q,e),g(X,e),g(ee,e)}}}const It='{"title":"Interesting Environments to try","local":"interesting-environments-to-try","sections":[{"title":"DIAMBRA Arena","local":"diambra-arena","sections":[{"title":"Main Features","local":"main-features","sections":[],"depth":4},{"title":"Competition Platform","local":"competition-platform","sections":[{"title":"References","local":"references","sections":[],"depth":4}],"depth":3}],"depth":2},{"title":"MineRL","local":"minerl","sections":[],"depth":2},{"title":"DonkeyCar Simulator","local":"donkeycar-simulator","sections":[],"depth":2},{"title":"Starcraft II","local":"starcraft-ii","sections":[],"depth":2},{"title":"Author","local":"author","sections":[],"depth":2}],"depth":1}';function At(Fe){return $t(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Dt extends xt{constructor(d){super(),Ct(this,d,At,kt,yt,{})}}export{Dt as component};
