- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
基于C语言的五子棋辅助软件的设计与实现
广东工业大学
本科毕业设计(论文)
基于C语言的五子棋辅助软件的设计与实现
系 部
专 业
年 级
班级名称
学 号
学生姓名
指导教师
2012 年 5 月 2
摘要
随着近代电子计算机技术的突飞猛进,带动了各个产业各个部门的飞速改革,人们的生活乃至世界观都被深深地影响着。而五子棋这一古老而传统的休闲对弈游戏,在发展、修正、建立起的连珠五子棋理论,超过了过去一百多年全世界连珠五子棋开局理论总和的数百甚至上千倍之多。Visual C++ 6.0以及C语言进行开发与测试。
关键词:连珠, C语言,算法分析,人工智能ABSTRACT
With the rapid development of modern computer technology,various industrial is changing and peoples lives are profoundly affected. The renju which is a kind of ancient and traditional casual games development, amendment, and establish a pente renju theory with the help of a variety of computer-aided software. The modern theory is thousands of times more than in the past. Different types of software often apply to different aspects of the work. This software applies to the reference to the time limit more stringent network chess game supporting software. This software focus on the optimization of the internal algorithm and has local analysis capability advantages. But portability is slightly insufficient. VCF traversal algorithm and the optimization of the depth of the traversal algorithm can make the software thinking depth of the supporting software. It greatly reducing the time consumption and maximum likelihood to obtain the optimal solution. Using Visual C + + 6.0 and the c programming language to develop and test.
Keywords:renju ,C programming languageAlgorithm analysis,Artificial Intelligence
目 录
1 绪论 1
1.1五子棋背景简介 1
1.1.1 传统五子棋 1
1.1.2 连珠五子棋 1
1.2连珠五子棋规则简介 1
1.3 C语言简介 2
2系统分析 4
2.1市场分析 4
2.1.1五子棋辅助软件简介 4
2.1.2五子棋辅助软件的优劣势 4
2.1.3市场需求 4
2.2目的分析 5
2.3总架构 5
2.3.1总体功能结构 5
2.3.2总体流程 6
2.4功能架构 7
3 基础算法分析与实现 10
3.1 棋盘 10
3.1.1位棋盘 10
3.1.2权值棋盘 10
3.1.3四色棋盘 11
3.2棋谱 12
3.3 胜负判定 13
3.4 图层深度 14
4 AI运算算法分析与实现 16
4.1四色棋盘算法 16
4.2权值棋盘算法 17
4.3 A-B剪枝 19
4.4 VCF 22
4.5综合算法 23
5 系统测试 28
5.1测试环境 28
5
文档评论(0)