import{s as ut,a as rt,n as pt,o as ft}from"../chunks/scheduler.505acc25.js";import{S as gt,i as ct,e as a,s,c as D,h as $t,a as r,d as n,b as i,f as mt,g as F,j as o,k as T,l as _t,m as l,n as J,t as K,o as Q,p as V}from"../chunks/index.b1175496.js";import{C as ht,H as ot}from"../chunks/Heading.eda51538.js";import{E as vt}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.ea377ea6.js";function Lt(W){let m,H,d,P,u,y,p,k,f,X,I,g,Y="🎶 我想成为最强的…🎶",A,c,Z="欢迎来到这个<strong>奖励单元</strong>，你将探索<strong>AI 智能体和游戏</strong>的激动人心的交汇点！🎮🤖",E,$,tt="想象一个游戏，其中非玩家角色（NPC）不仅仅遵循脚本台词，而是进行动态对话，适应你的策略，并随着故事展开而发展。这就是在游戏中结合<strong>LLM 和智能体行为</strong>的力量：它为<strong>前所未有的涌现叙事和游戏玩法</strong>打开了大门。",q,_,et="在这个奖励单元中，你将：",G,h,nt="<li>学习如何构建一个能够参与<strong>宝可梦风格回合制战斗</strong>的 AI 智能体</li> <li>与它对战，甚至在线挑战其他智能体</li>",S,v,lt='我们已经从 AI 社区看到了一些使用 LLM 玩宝可梦的<a href="https://www.anthropic.com/research/visible-extended-thinking" rel="nofollow">例子</a>，在这个单元中，你将学习如何使用你在课程中学到的想法用自己的智能体复制这一点。',U,L,st,j,x,z,M,it='<li><p>🎓 <strong>掌握游戏中的 LLM</strong>：通过我们的完整课程<a href="https://hf.co/learn/ml-games-course" rel="nofollow">游戏机器学习课程</a>深入游戏开发。</p></li> <li><p>📘 <strong>获取 AI 指南</strong>：在<a href="https://thomassimonini.substack.com/" rel="nofollow">游戏开发者 AI 指南</a>中发现见解、想法和实用技巧，在那里探索智能游戏设计的未来。</p></li>',N,C,at="但在我们构建之前，让我们通过<strong>四个鼓舞人心的现实世界例子</strong>来看看 LLM 已经如何在游戏中使用。",B,b,O,w,R;return u=new ht({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),p=new ot({props:{title:"介绍",local:"介绍",headingTag:"h1"}}),x=new ot({props:{title:"想要更深入？",local:"想要更深入",headingTag:"h2"}}),b=new vt({props:{source:"https://github.com/huggingface/agents-course/blob/main/units/zh-CN/bonus-unit3/introduction.mdx"}}),{c(){m=a("meta"),H=s(),d=a("p"),P=s(),D(u.$$.fragment),y=s(),D(p.$$.fragment),k=s(),f=a("img"),I=s(),g=a("p"),g.textContent=Y,A=s(),c=a("p"),c.innerHTML=Z,E=s(),$=a("p"),$.innerHTML=tt,q=s(),_=a("p"),_.textContent=et,G=s(),h=a("ul"),h.innerHTML=nt,S=s(),v=a("p"),v.innerHTML=lt,U=s(),L=a("img"),j=s(),D(x.$$.fragment),z=s(),M=a("ul"),M.innerHTML=it,N=s(),C=a("p"),C.innerHTML=at,B=s(),D(b.$$.fragment),O=s(),w=a("p"),this.h()},l(t){const e=$t("svelte-u9bgzb",document.head);m=r(e,"META",{name:!0,content:!0}),e.forEach(n),H=i(t),d=r(t,"P",{}),mt(d).forEach(n),P=i(t),F(u.$$.fragment,t),y=i(t),F(p.$$.fragment,t),k=i(t),f=r(t,"IMG",{src:!0,alt:!0}),I=i(t),g=r(t,"P",{"data-svelte-h":!0}),o(g)!=="svelte-1ndqdsa"&&(g.textContent=Y),A=i(t),c=r(t,"P",{"data-svelte-h":!0}),o(c)!=="svelte-1jxtov8"&&(c.innerHTML=Z),E=i(t),$=r(t,"P",{"data-svelte-h":!0}),o($)!=="svelte-1h48bux"&&($.innerHTML=tt),q=i(t),_=r(t,"P",{"data-svelte-h":!0}),o(_)!=="svelte-1ce8taf"&&(_.textContent=et),G=i(t),h=r(t,"UL",{"data-svelte-h":!0}),o(h)!=="svelte-jq0k3y"&&(h.innerHTML=nt),S=i(t),v=r(t,"P",{"data-svelte-h":!0}),o(v)!=="svelte-1pr4vbw"&&(v.innerHTML=lt),U=i(t),L=r(t,"IMG",{src:!0,alt:!0}),j=i(t),F(x.$$.fragment,t),z=i(t),M=r(t,"UL",{"data-svelte-h":!0}),o(M)!=="svelte-1ehssk1"&&(M.innerHTML=it),N=i(t),C=r(t,"P",{"data-svelte-h":!0}),o(C)!=="svelte-1rfuirg"&&(C.innerHTML=at),B=i(t),F(b.$$.fragment,t),O=i(t),w=r(t,"P",{}),mt(w).forEach(n),this.h()},h(){T(m,"name","hf:doc:metadata"),T(m,"content",xt),rt(f.src,X="https://huggingface.co/datasets/agents-course/course-images/resolve/main/en/bonus-unit3/pokemon_thumbnail.png")||T(f,"src",X),T(f,"alt","Bonus Unit 3 AI in Games"),rt(L.src,st="https://huggingface.co/datasets/agents-course/course-images/resolve/main/en/bonus-unit3/claude-plays-pokemon.png")||T(L,"src",st),T(L,"alt","Claude plays Pokémon")},m(t,e){_t(document.head,m),l(t,H,e),l(t,d,e),l(t,P,e),J(u,t,e),l(t,y,e),J(p,t,e),l(t,k,e),l(t,f,e),l(t,I,e),l(t,g,e),l(t,A,e),l(t,c,e),l(t,E,e),l(t,$,e),l(t,q,e),l(t,_,e),l(t,G,e),l(t,h,e),l(t,S,e),l(t,v,e),l(t,U,e),l(t,L,e),l(t,j,e),J(x,t,e),l(t,z,e),l(t,M,e),l(t,N,e),l(t,C,e),l(t,B,e),J(b,t,e),l(t,O,e),l(t,w,e),R=!0},p:pt,i(t){R||(K(u.$$.fragment,t),K(p.$$.fragment,t),K(x.$$.fragment,t),K(b.$$.fragment,t),R=!0)},o(t){Q(u.$$.fragment,t),Q(p.$$.fragment,t),Q(x.$$.fragment,t),Q(b.$$.fragment,t),R=!1},d(t){t&&(n(H),n(d),n(P),n(y),n(k),n(f),n(I),n(g),n(A),n(c),n(E),n($),n(q),n(_),n(G),n(h),n(S),n(v),n(U),n(L),n(j),n(z),n(M),n(N),n(C),n(B),n(O),n(w)),n(m),V(u,t),V(p,t),V(x,t),V(b,t)}}}const xt='{"title":"介绍","local":"介绍","sections":[{"title":"想要更深入？","local":"想要更深入","sections":[],"depth":2}],"depth":1}';function Mt(W){return ft(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class wt extends gt{constructor(m){super(),ct(this,m,Mt,Lt,ut,{})}}export{wt as component};
