人工智能游戏开发.pptx

上传人:A**** 文档编号:15118972 上传时间:2023-06-30 格式:PPTX 页数:16 大小:268.03KB
下载 相关 举报
人工智能游戏开发.pptx_第1页
第1页 / 共16页
人工智能游戏开发.pptx_第2页
第2页 / 共16页
人工智能游戏开发.pptx_第3页
第3页 / 共16页
人工智能游戏开发.pptx_第4页
第4页 / 共16页
人工智能游戏开发.pptx_第5页
第5页 / 共16页
人工智能游戏开发.pptx_第6页
第6页 / 共16页
人工智能游戏开发.pptx_第7页
第7页 / 共16页
人工智能游戏开发.pptx_第8页
第8页 / 共16页
人工智能游戏开发.pptx_第9页
第9页 / 共16页
人工智能游戏开发.pptx_第10页
第10页 / 共16页
人工智能游戏开发.pptx_第11页
第11页 / 共16页
人工智能游戏开发.pptx_第12页
第12页 / 共16页
人工智能游戏开发.pptx_第13页
第13页 / 共16页
人工智能游戏开发.pptx_第14页
第14页 / 共16页
人工智能游戏开发.pptx_第15页
第15页 / 共16页
人工智能游戏开发.pptx_第16页
第16页 / 共16页
亲,该文档总共16页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

人工智能游戏开发.pptx

《人工智能游戏开发.pptx》由会员分享,可在线阅读,更多相关《人工智能游戏开发.pptx(16页珍藏版)》请在冰点文库上搜索。

人工智能游戏开发.pptx

ConnectFourusingAlpha-BetaPruning,BillyLandowskiCptS5407December2010,Overview,BackgroundConnectFourasasearchproblemAlpha-betapruningDetailsaboutwinningHeuristicsImplementation/DemoConclusion,Background,SoldbyMiltonBradleyinFebruary19742playersAlternateturnsGoal:

Connectfourtilesinarowhorizontally,vertically,ordiagonally,ConnectFourasaSearchProblem,7possiblemovesperturnEnumerateeachmoveContinueforeachboardconfiguration,ConnectFourasaSearchProblem,States:

AnyboardconfigurationwithatmostoneplayerstileineachlocationInitialState:

Anemptygameboardwithnotiles.Actions:

Placeatileofthecurrentplayerscolorintoanycolumnthatisnotfull.TransitionModel:

Returnsaboardconfigurationwithatileaddedtothespecifiedcolumn.Goal/TerminalTest:

Aplayerhasfourofhertilesinalineeitherhorizontally,vertically,ordiagonally,orthegameboardisfull(indicatingatie).Utility:

+ifplayerhasconnectedfour,0ifboardisfull,ifopponenthasconnectedfour.,Alpha-betapruning,O(bd/2)timecomplexityb=branchingfactor=7d=depth=76=42ComputationallyintensiveNeedcut-offdepthCanalsoaddheuristics,WinningConnectFour,Towin,playerneedsa“winningline”of4,3-out-of-4Heuristic,Towin,playerneedsa“near”winninglineof3,3-out-of-4Heuristic(cont.),Counttotal3-out-of-4“unblocked”winninglinesComparetoopponentUtility(p,G)=f(p,G)f(opponent(p),G)f(a,G)=#of3-out-of-4winninglinesforplayeraonboardG,ScoreboardHeuristic,Extend3-out-of-4heuristicton-out-of-4forn3AwardweightedpointsbasedonthevalueofnScore(p,G)=100(n3)+10(n2)+1(n1)niisthenumberofi-out-of-4winninglinesforplayerpongameboardG,ScoreboardHeuristic(cont.),Five1-out-of-4winninglines(n1=5)Five2-out-of-4winninglines(n2=5)Score=100(0)+10(5)+1(5)=55,ScoreboardHeuristic(cont.),CompareplayersscoresUtility(p,G)=Score(p,G)Score(opponent(p),G),Implementation,WritteninC#under.NETFrameworkMicrosoftVisualStudio2008WindowsFormsapplication,CPUDifficulties,4difficultiesBeginnerrandomModeratealpha-betapruningwithcutoff-depth3andsimpleutilityfunctionHardalpha-betapruningwithcutoff-depth6and3-out-of-4heuristicExpertalpha-betapruningwithcutoff-depth6andscoreboardheuristicAspectofrandomness,ComparisonofCPUDifficulties,Demonstration,

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 高等教育 > 文学

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2