设计 任务书 文档 开题 答辩 说明书 格式 模板 外文 翻译 范文 资料 作品 文献 课程 实习 指导 调研 下载 网络教育 计算机 网站 网页 小程序 商城 购物 订餐 电影 安卓 Android Html Html5 SSM SSH Python 爬虫 大数据 管理系统 图书 校园网 考试 选题 网络安全 推荐系统 机械 模具 夹具 自动化 数控 车床 汽车 故障 诊断 电机 建模 机械手 去壳机 千斤顶 变速器 减速器 图纸 电气 变电站 电子 Stm32 单片机 物联网 监控 密码锁 Plc 组态 控制 智能 Matlab 土木 建筑 结构 框架 教学楼 住宅楼 造价 施工 办公楼 给水 排水 桥梁 刚构桥 水利 重力坝 水库 采矿 环境 化工 固废 工厂 视觉传达 室内设计 产品设计 电子商务 物流 盈利 案例 分析 评估 报告 营销 报销 会计
 首 页 机械毕业设计 电子电气毕业设计 计算机毕业设计 土木工程毕业设计 视觉传达毕业设计 理工论文 文科论文 毕设资料 帮助中心 设计流程 
垫片
您现在所在的位置:首页 >>计算机毕业设计 >> 文章内容
                 
垫片
   我们提供全套毕业设计和毕业论文服务,联系微信号:biyezuopin QQ:2922748026   
基于C++的人工智能单机版棋类游戏开发 毕业论文+任务书+审题表+开题报告+中期报告+外文翻译及原文+答辩PPT+演示视频+参考文献资料+项目源码及可执行EXE文件
文章来源:www.biyezuopin.vip   发布者:毕业作品网站  

摘 要

我们采用C++编程语言设计了一个五子棋对弈游戏。它能够做到玩家与计算机按照标准的五子棋规则对弈。这个程序包括一个能够进行人机交互的图形化界面和一个符合五子棋规则的对弈算法。图形界面模块负责在程序窗口中绘制棋盘和棋子,并通过响应鼠标事件进行交互。对弈算法以搜索算法和赋值算法为核心。我们通过遍历棋盘上的位子给不同的棋型赋予相应的值,并通过对弈算法找到当前局面的最优落子点。在每一步落子后程序将会对棋盘进行分析,若发现某方达成了获胜条件,则会结束本局游戏,输出对弈结果。本文描述了这个对弈游戏的实现方法。测试结果表明本游戏可以支持五子棋的人机对弈。

关键词:C++,五子棋,对弈算法

Development of a stand-alone board game based on artificial intelligence

ABSTRACT

We have designed a backgammon game using the C++ programming language. It enables the player and the computer to play according to standard backgammon rules. The program consists of a graphical interface that allows human-computer interaction and a game algorithm that conforms to the rules of futsal. The graphical interface module is responsible for drawing the board and pieces in the program window and interacting with them by responding to mouse events. The game algorithm is based on a search and assignment algorithm. By traversing the board and assigning values to the different types of pieces, we find the optimal move for the current position. After each move the board is analysed and if a winning condition is found, the game ends and the result is output. This paper describes the implementation of this game. Test results show that the game can support human-computer play of five pieces.

Key words: Artificial Intelligence, Gobang, Greedy Algorithm
























  全套毕业设计论文现成成品资料请咨询微信号:biyezuopin QQ:2922748026     返回首页 如转载请注明来源于www.biyezuopin.vip  

                 

打印本页 | 关闭窗口
本类最新文章
基于前馈控制的动态电压恢复器(D 光纤的色散补偿方式及应用分析 毕 基于10kV配电网线损的仿真计算
华兴科技公司网络规划与设计 毕业 宠物之家寄养系统的设计与实现 毕 SSM的毕业生去向登记分析管理系
| 关于我们 | 友情链接 | 毕业设计招聘 |

Email:biyeshejiba@163.com 微信号:biyezuopin QQ:2922748026  
本站毕业设计毕业论文资料均属原创者所有,仅供学习交流之用,请勿转载并做其他非法用途.如有侵犯您的版权有损您的利益,请联系我们会立即改正或删除有关内容!