




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
ConnectFourusingAlpha-BetaPruningBillyLandowskiCptS5407December2010OverviewBackgroundConnectFourasasearchproblemAlpha-betapruningDetailsaboutwinningHeuristicsImplementation/DemoConclusionBackgroundSoldbyMiltonBradleyinFebruary19742playersAlternateturnsGoal:Connectfourtilesinarowhorizontally,vertically,ordiagonallyConnectFourasaSearchProblem≤7possiblemovesperturnEnumerateeachmoveContinueforeachboardconfigurationPlayer1Player2ConnectFourasaSearchProblemStates:Anyboardconfigurationwithatmostoneplayer’stileineachlocationInitialState:Anemptygameboardwithnotiles.Actions:Placeatileofthecurrentplayer’scolorintoanycolumnthatisnotfull.TransitionModel:Returnsaboardconfigurationwithatileaddedtothespecifiedcolumn.Goal/TerminalTest:Aplayerhasfourofhertilesinalineeitherhorizontally,vertically,ordiagonally,orthegameboardisfull(indicatingatie).Utility:+∞ifplayerhasconnectedfour,0ifboardisfull,–∞ifopponenthasconnectedfour.Alpha-betapruningO(bd/2)timecomplexityb=branchingfactor=7d=depth=7×6=42ComputationallyintensiveNeedcut-offdepthCanalsoaddheuristicsWinningConnectFourTowin,playerneedsa“winningline”of43-out-of-4HeuristicTowin,playerneedsa“near”winninglineof33-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-4winninglinesforplayeraonboardGScoreboardHeuristicExtend3-out-of-4heuristicton-out-of-4forn≤3AwardweightedpointsbasedonthevalueofnScore(p,G)=100(n3)+10(n2)+1(n1)niisthenumberofi-out-of-4winninglinesforplayerpongameboardGScoreboardHeuristic(cont.)Five1-out-of-4winninglines(n1=5)Five2-out-of-4winninglines(n2=5)Score=100(0)+10(5)+1(5)=55ScoreboardHeuristic(cont.)Compareplayers’scoresUtility(p,G)=Score(p,G)––Score(opponent(p),G)ImplementationWritteninC#under.NETFrameworkMicrosoftVisualStudio2008WindowsFormsapplicationCPUDifficulties4difficultiesBeginner––randomModerate––alpha-betapruningwithcutoff-depth3andsimpleutilityfunctionHard––alpha-betapruningwithcutoff-depth6and3-out-of-4heuristicExpert––alpha-betaprunin
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 工业园区规划与可持续发展研究
- 工业废水处理技术与设备发展研究
- 工业大数据分析与挖掘技术
- 工业安全防范系统建设与优化
- 工业物联网与智能化工厂的建设
- 工业生产中机器视觉检测技术的应用
- 工业绿色转型与技术革新
- 工业设备故障诊断的机器学习方案
- 工业设计中的智能化技术应用
- 工业自动化中的电力安全防护措施
- 批判性思维实践手册
- 《破产重整》课件
- 提高治疗室物品放置规范率
- 《职场沟通技巧》课件
- 辽宁大学《生态学》2023-2024学年第一学期期末试卷
- 《Maya 2022三维动画制作标准教程(全彩版)》第08章 渲染与输出
- 2024秋国开《人工智能专题》专题测验1-3答案
- 《我国上市公司财务舞弊探析案例-长园集团为例》14000字(论文)
- DB12-T 3035-2023 建筑消防设施维护保养技术规范
- 2024年湖北省初中学业水平考试地理试卷含答案
- DB35T 2067-2022 锅炉用固体废弃物燃料性能评价规则
评论
0/150
提交评论