| 设计 任务书 文档 开题 答辩 说明书 格式 模板 外文 翻译 范文 资料 作品 文献 课程 实习 指导 调研 下载 网络教育 计算机 网站 网页 小程序 商城 购物 订餐 电影 安卓 Android Html Html5 SSM SSH Python 爬虫 大数据 管理系统 图书 校园网 考试 选题 网络安全 推荐系统 机械 模具 夹具 自动化 数控 车床 汽车 故障 诊断 电机 建模 机械手 去壳机 千斤顶 变速器 减速器 图纸 电气 变电站 电子 Stm32 单片机 物联网 监控 密码锁 Plc 组态 控制 智能 Matlab 土木 建筑 结构 框架 教学楼 住宅楼 造价 施工 办公楼 给水 排水 桥梁 刚构桥 水利 重力坝 水库 采矿 环境 化工 固废 工厂 视觉传达 室内设计 产品设计 电子商务 物流 盈利 案例 分析 评估 报告 营销 报销 会计 | |||||
|
|||||
|
|||||
|
|||||
目 录
摘要
ABSTRACT
1绪论
1.1 课题研究背景
1.2 国内外研究现状
1.3 主要研究内容及方法
1.4 论文组织结构
2 相关研究工作技术概述
2.1 人工智能
2.2 博弈论
2.2.1 基本定义
2.2.2 应用与影响
2.3 棋类游戏介绍
3 算法设计
3.1 五子棋相关技术介绍
3.2 棋类游戏基础算法概述
3.2.1 盲目搜索算法
3.2.2 极大极小算法
3.2.3 ALPHA-BETA剪枝算法
3.3 五子棋算法设计
4 系统设计与实现
4.1 总体程序框架
4.2 程序界面设计
4.2.1 计算机图形学概述
4.2.2 界面设计与人机交互
4.3 读档功能
4.4 悔棋功能
4.5 测试
5 总结和未来展望
参考文献
我们采用C++编程语言设计了一个五子棋对弈游戏。它能够做到玩家与计算机按照标准的五子棋规则对弈。这个程序包括一个能够进行人机交互的图形化界面和一个符合五子棋规则的对弈算法。图形界面模块负责在程序窗口中绘制棋盘和棋子,并通过响应鼠标事件进行交互。对弈算法以搜索算法和赋值算法为核心。我们通过遍历棋盘上的位子给不同的棋型赋予相应的值,并通过对弈算法找到当前局面的最优落子点。在每一步落子后程序将会对棋盘进行分析,若发现某方达成了获胜条件,则会结束本局游戏,输出对弈结果。本文描述了这个对弈游戏的实现方法。测试结果表明本游戏可以支持五子棋的人机对弈。
关键词:C++,五子棋,对弈算法
Development of a stand-alone board game based on artificial intelligence
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























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