人工智能大作业项目报告和源码——五子棋对战系统 人工智能 java
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-axegupay5k/5aaa13fb513f4b4796f6dfaae6fbcce3~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1727395751&x-signature=9op2x5u7%2FFbbuoXIiBrdijyH9y4%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">计算机(软件)学院</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">人工智能大作业项目报告</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">人工智能五子棋</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">姓 名:</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">专 业:计算机科学与技术</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">指点</span>教师:</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">日 期:</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;"><span style="color: black;">目录</span></strong><span style="color: black;"><span style="color: black;">1、</span>项目背景··················································1<span style="color: black;">2、</span>所用技术··················································1<span style="color: black;">3、</span>项目整体介绍·············································2(1)项目核心 - 知识的推理、搜索技术与可视化················2(2)项目外围 - 自然语言处理、分词与滚动词云················2<span style="color: black;">4、</span>项目核心算法介绍·········································3<span style="color: black;">5、</span>项目成果··················································4<span style="color: black;">6、</span>课程总结··················································7</span></p><span style="color: black;">
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">项目背景</p>本学期人工智能导论课程的<span style="color: black;">重点</span>知识点<span style="color: black;">重点</span><span style="color: black;">包含</span>:知识的<span style="color: black;">暗示</span>与推理、搜索技术、<span style="color: black;">设备</span>学习、互联网智能、自然语言处理等几个<span style="color: black;">重点</span>方面,为了充分<span style="color: black;">表现</span>半学期<span style="color: black;">败兴</span>学习的知识,将所学知识初步应用于实践之中,<span style="color: black;">这次</span>课程的<span style="color: black;">最后</span>大项目<span style="color: black;">咱们</span><span style="color: black;">选取</span>做基于人工智能的五子棋对战系统,重点集中于博弈推理模块,力求让人工智能在博弈过程中有最好的表现。<span style="color: black;">同期</span>,<span style="color: black;">咱们</span>还兼顾了自然语言处理,动态可视化的对弈过程,滚动术语词云等技术,<span style="color: black;">恰当</span>地应用所学知识与技术。
</span><span style="color: black;">
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">所用技术</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">咱们</span>用到了知识的<span style="color: black;">暗示</span>、搜索技术、推理技术、可视化技术、<span style="color: black;">设备</span>学习、互联网智能技术和自然语言处理技术等。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">技术的<span style="color: black;">运用</span>概况:</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">知识<span style="color: black;">暗示</span>:黑白棋子位置坐标的<span style="color: black;">暗示</span>。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">推理技术:经若干次搜索,推理出使己方得分高敌方得分低最优解。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">搜索技术:搜索己方得分最高分并搜索对方下一步最高分。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">可视化:黑白棋子动态博弈和动态词云展示。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">设备</span>学习:<span style="color: black;">按照</span>经验学习<span style="color: black;">持续</span><span style="color: black;">加强</span>博弈水平。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">互联网智能技术:从网上爬取专业术语和五子棋技巧。</p>自然语言处理:从爬取得到的五子棋技巧中利用jieba进行分词并绘制出<span style="color: black;">相关</span>五子棋技巧的词云。
</span><span style="color: black;">项目整体介绍</span><span style="color: black;">项目核心 - 知识的推理、搜索技术与可视化</span>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">在一个智能对弈系统中,人工智能有着绝对的<span style="color: black;">优良</span>,<span style="color: black;">经过</span><span style="color: black;">持续</span>地学习知识、<span style="color: black;">累积</span>经验、修改权值,其工作效率<span style="color: black;">能够</span><span style="color: black;">持续</span><span style="color: black;">加强</span>,可信度会<span style="color: black;">持续</span>改善。<span style="color: black;">思虑</span>到在对弈的前两步<span style="color: black;">咱们</span>不会有输赢的趋势,<span style="color: black;">因此</span>前两步<span style="color: black;">咱们</span>会在棋子的<span style="color: black;">周边</span>随机下棋。从第三步<span style="color: black;">起始</span>,系统就要扫描<span style="color: black;">全部</span>棋局,构建博弈树,接着用深度优先算法<span style="color: black;">评定</span>自己<span style="color: black;">是不是</span>占<span style="color: black;">优良</span>。<span style="color: black;">同期</span>还会<span style="color: black;">按照</span>自己的优劣势<span style="color: black;">选取</span>进攻还是防守,在<span style="color: black;">区别</span>情境下,系统<span style="color: black;">选取</span>的落子位置<span style="color: black;">亦</span>会有所<span style="color: black;">区别</span>。<span style="color: black;">针对</span>每一个点击事件,<span style="color: black;">咱们</span>将其转化为棋盘之中可视化的黑白棋子交替博弈,<span style="color: black;">经过</span>坐标推算其位置,<span style="color: black;">经过</span>算法<span style="color: black;">供给</span>若干可能的应对<span style="color: black;">办法</span>,最后,<span style="color: black;">经过</span>搜索技术在可能解中<span style="color: black;">快速</span>找到最优解,并推理出指定的下棋位置。可视化的对弈过程,搜索、推理以及<span style="color: black;">详细</span>的博弈分析算法既在程序之中得以<span style="color: black;">表现</span>,<span style="color: black;">亦</span>在可见于对弈的过程之中。当然在交互页面上,<span style="color: black;">咱们</span><span style="color: black;">亦</span><span style="color: black;">同期</span>做了悔棋、<span style="color: black;">选取</span>先手等功能,这是为了用户能够更好地<span style="color: black;">运用</span>这个系统体验与<span style="color: black;">设备</span>博弈的过程。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">(2)项目外围 - 自然语言处理、分词与滚动词云</p>自然语言处理既是人工智能的核心技术,又是计算机科学和语言科学的分支学科,它推动着语言智能的<span style="color: black;">连续</span>发展和突破,并越来越多的应用于各行各业。在本学期人工智能导论课程中,<span style="color: black;">包含</span>了分词、标注、句法分析等<span style="color: black;">基本</span>的自然语言处理技术,这在<span style="color: black;">咱们</span>的程序中有所<span style="color: black;">表现</span>。<span style="color: black;">首要</span>,关于网络上五子棋的技巧大<span style="color: black;">大都是</span>凌乱的,<span style="color: black;">咱们</span>利用爬虫收集了网络上有阅读价值的<span style="color: black;">有些</span>数据,并<span style="color: black;">恰当</span>地编排了格式将它们展示出来。<span style="color: black;">同期</span>,<span style="color: black;">咱们</span>将五子棋中的<span style="color: black;">有些</span>专业术语,<span style="color: black;">例如</span>阴线、阳线、交叉点等,做<span style="color: black;">成为了</span>一个圆形的滚动词云,当鼠标停在某一个术语上时会暂定转动,并展示其为红色。最后,<span style="color: black;">咱们</span>完<span style="color: black;">成为了</span>分词功能,<span style="color: black;">按照</span>一段五子棋技巧文本,进行分词,并形成一个分词结果的词云<span style="color: black;">照片</span>。在五子棋对战的页面中,<span style="color: black;">咱们</span><span style="color: black;">经过</span>按钮的方式将玩法技巧以及词云图加入到了项目之中,从而形成一个完整的五子棋对战。即用户既<span style="color: black;">能够</span>与电脑对弈,<span style="color: black;">亦</span><span style="color: black;">能够</span><span style="color: black;">认识</span>五子棋的<span style="color: black;">关联</span>知识以及<span style="color: black;">有些</span>下棋技巧。<span style="color: black;">
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">项目核心算法介绍</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">本项目的核心是五子棋的最优落子位置的<span style="color: black;">选取</span>和棋子在棋盘上的动态<span style="color: black;">表示</span>。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">首要</span>,最重要的算法<span style="color: black;">便是</span>五子棋的落子位置的<span style="color: black;">选取</span>。<span style="color: black;">咱们</span><span style="color: black;">按照</span>经验和在对弈过程中的<span style="color: black;">各样</span><span style="color: black;">状况</span>的<span style="color: black;">持续</span>试探最后得到<span style="color: black;">日前</span>各个棋型最<span style="color: black;">恰当</span>的权值分布。<span style="color: black;">而后</span>,在对弈初的前两步并不会<span style="color: black;">显现</span>输赢的趋势,<span style="color: black;">因此</span>,为了更好地使得之后的棋局更富有竞争性,<span style="color: black;">咱们</span>在前两步将会在已下棋子的<span style="color: black;">周边</span>随机落子。在之后的对弈过程中,将会进行全棋盘的扫描,<span style="color: black;">经过</span>最初得到的<span style="color: black;">各样</span>棋型的权值,在横、竖、左斜和右斜四种方向上分别得到对应得分之后相加,即为<span style="color: black;">每一个</span>空格的己方落子得分。在<span style="color: black;">每一个</span>预测的己方落子位置之上,将会继续搜索全局,<span style="color: black;">根据</span><span style="color: black;">一样</span>的<span style="color: black;">办法</span>得到在我方下一步落子之后敌方的最优落子得分。接下来,将会<span style="color: black;">按照</span>搜索到的多组己方的敌方得分<span style="color: black;">经过</span>推理得到一个令己方得分尽可能高,使敌方得分尽可能低的最优落子位置。</p>其次,<span style="color: black;">针对</span>棋盘棋子的可视化和动态<span style="color: black;">表示</span>。<span style="color: black;">首要</span>,<span style="color: black;">咱们</span>先<span style="color: black;">经过</span><span style="color: black;">测绘</span>计算出棋盘的像素<span style="color: black;">体积</span>、棋盘上面<span style="color: black;">第1</span>个横线和竖线的位置和棋盘上面格与格之间的间隔<span style="color: black;">体积</span>。<span style="color: black;">而后</span><span style="color: black;">按照</span>棋盘格之间的距离<span style="color: black;">根据</span>合适的<span style="color: black;">体积</span><span style="color: black;">调节</span>棋子的<span style="color: black;">体积</span>。<span style="color: black;">而后</span>,在鼠标点击棋盘触发落子事件时,<span style="color: black;">经过</span>对鼠标点击坐标<span style="color: black;">按照</span>之前的<span style="color: black;">测绘</span>结果进行<span style="color: black;">恰当</span>的计算得到在一定范围内都能匹配到棋盘上对应格子的坐标(<span style="color: black;">这儿</span>是格子的坐标,并非位置像素坐标)。当此为空格时将对应棋子的<span style="color: black;">照片</span><span style="color: black;">按照</span>坐标的计算得到<span style="color: black;">安置</span>位置。当计算机落子时,<span style="color: black;">按照</span>算法得到的最优落子位置(格子的坐标)<span style="color: black;">一样</span><span style="color: black;">经过</span>计算得到<span style="color: black;">安置</span>位置。<span style="color: black;">针对</span>悔棋功能,<span style="color: black;">咱们</span>设置了一个存放落子的栈,触发悔棋功能时,将会从栈中取出两枚棋子并将其在棋盘上<span style="color: black;">表示</span>的<span style="color: black;">照片</span>删除。
</span><span style="color: black;">
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">项目成果</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">项目成果的部分图示:</p>对弈棋盘:
</span>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/fac3a6a114594a989b4278ab60311b7b~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1727395751&x-signature=LLV4eweWvQqnUVJe602v1gb1uBQ%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">五子棋术语词云:</span></p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/8c257b2aa4a242d793f594f5ebe12814~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1727395751&x-signature=neEzgR7T4fSjspl8IQiqncviTks%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">五子棋技巧:</span></p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/905f5b07dfe944baa83c3c1e9dc50770~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1727395751&x-signature=H58HgwiwauRsl%2FfGxIGt0MUHh0k%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">技巧中和五子棋<span style="color: black;">关联</span>词语<span style="color: black;">形成</span>的词云:</span></p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/2a99e29b39534e4e83485eb7dd5f444f~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1727395751&x-signature=ELxOAsiPXgt3ai7B716INWDLEjE%3D" style="width: 50%; margin-bottom: 20px;"></div><span style="color: black;">课程总结</span>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">人工智能导论课程是入门人工智能<span style="color: black;">行业</span>的<span style="color: black;">基本</span>课程,最后的大作业项目中,<span style="color: black;">表现</span>了<span style="color: black;">针对</span>课程的学习成果。当然,本学期所学知识并非仅此<span style="color: black;">罢了</span>,例如遗传算法、粒子群算法、蚁群算法等优化算法、知识<span style="color: black;">暗示</span>的框架<span style="color: black;">暗示</span>法、几类经典的的<span style="color: black;">设备</span>学习模式、模糊推理的过程、<span style="color: black;">经过</span>例题练习,查看神经网络学习结果与反馈机制的关系等,这些都给<span style="color: black;">咱们</span>留下了很深的印象;其次,许多技术的实现都<span style="color: black;">触及</span>到了非常美观的可视化页面,<span style="color: black;">提高</span>了<span style="color: black;">咱们</span><span style="color: black;">针对</span>人工智能课程的兴趣;最后,感谢老师半年<span style="color: black;">败兴</span>对<span style="color: black;">咱们</span>的悉心教诲,为<span style="color: black;">咱们</span>今后的学习生涯掌灯。</span></p>
你说得对,我们一起加油,未来可期。
页:
[1]