import{s as X,a as Z,n as tt,o as et}from"../chunks/scheduler.be7fe76e.js";import{S as nt,i as at,e as l,s as i,c as Y,h as it,a as o,d as n,b as s,f as D,g as J,j as C,k as $,l as st,m as a,n as K,t as Q,o as V,p as W}from"../chunks/index.0ce520ff.js";import{H as lt,E as ot}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.a207c8e3.js";function rt(q){let r,P,b,w,u,y,m,N,T,c,O="The ultimate goal of any video game is to be an <strong>immersive experience</strong>.",M,h,U="To achieve this, the NPC (Non-Playable Characters) must <strong>look smart</strong>: they should smoothly <strong>navigate the map</strong> and <strong>make logical decisions</strong>. This is crucial to contribute <strong>to the illusion of a coherent and believable world</strong>.",A,p,j="To accomplish this goal, the gaming industry developed multiple algorithm designs such as Navigation Mesh, Behavior Tree, Goal Action Oriented Planning and more.",H,g,z="Learning these tools is critical to work on AI in games.",L,f,B="Therefore, in this bonus unit, we’ll study classical AI in games. You’ll learn about Navigation Meshes, Behavior Trees, Goal Action Oriented Planning, Finite State Machines and more.",G,d,F="In the first section, <strong>you’ll learn the theory behind these algorithms, how they are used in games, and then, in the following sections, you’ll learn to implement these with Unreal or Unity</strong>.",I,v,R="So let’s get started 🚀.",E,_,k,x,S;return u=new lt({props:{title:"Classical AI in Games",local:"classical-ai-in-games",headingTag:"h1"}}),_=new ot({props:{source:"https://github.com/huggingface/making-games-with-ai-course/blob/main/units/en/unitbonus1/introduction.mdx"}}),{c(){r=l("meta"),P=i(),b=l("p"),w=i(),Y(u.$$.fragment),y=i(),m=l("img"),T=i(),c=l("p"),c.innerHTML=O,M=i(),h=l("p"),h.innerHTML=U,A=i(),p=l("p"),p.textContent=j,H=i(),g=l("p"),g.textContent=z,L=i(),f=l("p"),f.textContent=B,G=i(),d=l("p"),d.innerHTML=F,I=i(),v=l("p"),v.textContent=R,E=i(),Y(_.$$.fragment),k=i(),x=l("p"),this.h()},l(t){const e=it("svelte-u9bgzb",document.head);r=o(e,"META",{name:!0,content:!0}),e.forEach(n),P=s(t),b=o(t,"P",{}),D(b).forEach(n),w=s(t),J(u.$$.fragment,t),y=s(t),m=o(t,"IMG",{src:!0,alt:!0,width:!0}),T=s(t),c=o(t,"P",{"data-svelte-h":!0}),C(c)!=="svelte-17eq1q2"&&(c.innerHTML=O),M=s(t),h=o(t,"P",{"data-svelte-h":!0}),C(h)!=="svelte-p5pc5h"&&(h.innerHTML=U),A=s(t),p=o(t,"P",{"data-svelte-h":!0}),C(p)!=="svelte-1vtjfzt"&&(p.textContent=j),H=s(t),g=o(t,"P",{"data-svelte-h":!0}),C(g)!=="svelte-132cf86"&&(g.textContent=z),L=s(t),f=o(t,"P",{"data-svelte-h":!0}),C(f)!=="svelte-15eovyg"&&(f.textContent=B),G=s(t),d=o(t,"P",{"data-svelte-h":!0}),C(d)!=="svelte-208awh"&&(d.innerHTML=F),I=s(t),v=o(t,"P",{"data-svelte-h":!0}),C(v)!=="svelte-12n4sl9"&&(v.textContent=R),E=s(t),J(_.$$.fragment,t),k=s(t),x=o(t,"P",{}),D(x).forEach(n),this.h()},h(){$(r,"name","hf:doc:metadata"),$(r,"content",mt),Z(m.src,N="https://huggingface.co/datasets/huggingface-ml-4-games-course/course-images/resolve/main/en/bonus-unit1/thumbnail.png")||$(m,"src",N),$(m,"alt","Classical AI in Games thumbnail"),$(m,"width","100%")},m(t,e){st(document.head,r),a(t,P,e),a(t,b,e),a(t,w,e),K(u,t,e),a(t,y,e),a(t,m,e),a(t,T,e),a(t,c,e),a(t,M,e),a(t,h,e),a(t,A,e),a(t,p,e),a(t,H,e),a(t,g,e),a(t,L,e),a(t,f,e),a(t,G,e),a(t,d,e),a(t,I,e),a(t,v,e),a(t,E,e),K(_,t,e),a(t,k,e),a(t,x,e),S=!0},p:tt,i(t){S||(Q(u.$$.fragment,t),Q(_.$$.fragment,t),S=!0)},o(t){V(u.$$.fragment,t),V(_.$$.fragment,t),S=!1},d(t){t&&(n(P),n(b),n(w),n(y),n(m),n(T),n(c),n(M),n(h),n(A),n(p),n(H),n(g),n(L),n(f),n(G),n(d),n(I),n(v),n(E),n(k),n(x)),n(r),W(u,t),W(_,t)}}}const mt='{"title":"Classical AI in Games","local":"classical-ai-in-games","sections":[],"depth":1}';function ut(q){return et(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class gt extends nt{constructor(r){super(),at(this,r,ut,rt,X,{})}}export{gt as component};
