基于人工智能的五子棋游戏的初步实现
原站著录信息
摘要
摘 要:现如今,计算机硬件功能不断提高,系统软件不断完善,人工智能已广泛应用于各个相关领域,并发挥愈来愈大的作用。人工智能就是要让机器的行为看起来就像是人所表现出的智能行为一样。从某种程度上来说,在某些领域,人工智能的实现已经可以取代人类的工作,因此,人工智能逐渐发展成为高端的技术派别。 五子棋起源于四千多年前的尧帝时期,其规则简单,简单易学,富有趣味,不仅能增强思维能力,提高智力,而且有助于修身养性。 本课题对人工智能与五子棋的结合作了一定的学习和研究,并在人工智能的基础上实现了一个小型的五子棋游戏软件,其功能表…
摘 要:现如今,计算机硬件功能不断提高,系统软件不断完善,人工智能已广泛应用于各个相关领域,并发挥愈来愈大的作用。人工智能就是要让机器的行为看起来就像是人所表现出的智能行为一样。从某种程度上来说,在某些领域,人工智能的实现已经可以取代人类的工作,因此,人工智能逐渐发展成为高端的技术派别。
五子棋起源于四千多年前的尧帝时期,其规则简单,简单易学,富有趣味,不仅能增强思维能力,提高智力,而且有助于修身养性。
本课题对人工智能与五子棋的结合作了一定的学习和研究,并在人工智能的基础上实现了一个小型的五子棋游戏软件,其功能表现为人机对战,电脑表现出一定的智能,能判输赢,并能做出禁手等判别。
本文简述了软件实现所需的技术基础,包括.net开发、c#编程等,并着重阐述了该游戏软件的设计方法、功能实现及主要算法等。
Abstract
Nowadays, as the function of computer hardware and system software continue to improve, Artificial Intelligence has been widely used in various related fields, and plays a greater and greater role. The artificial intelligence is the machines’ behavior looks like the behavior shown by people. To a certain extent, in some areas , the realization of artificialnintelligence can replace human’s works. AI has gradually developed into a high-end technology subjects.
The origins of Gobang is more than 4,000 years ago, since Yao period. Its rules is simple and easy to learn ,and what’s more, full of fun. It can not only enhance the ability to think, improve intelligence, but also do help to self-cultivation.
In this paper, some research has been done in the combination of artificial intelligence , and realized a small Gobang game software based on artificial intelligence. The performance of its functions shown by Human-Computer Fighting, The computer will show some extent of wisdom, which can judge losing or Winning, or to make a cut hand, and other judgements.
This paper also describes the necessary technical basis to finish the software, including .net development,the c # programming, and focus on the user interface of game software, and the main function of achieving algorithm, design principles, and so on.
Key Words: AI;Gobang,;Human-Computer Fighting
目 录
1 绪论 1
1.1 课题的背景 1
1.2 国内外研究状况和相关领域中已有的成果 2
1.3 人工智能分类 3
1.4 设计和研究方法 3
1.5 开发环境及运行环境 4
1.5.1 开发环境 4
1.5.2 运行环境 4
1.6 开发工具 4
1.7 论文结构 5
2 基本理论知识及应用 6
2.1 五子棋系统说明 6
2.2 .NET简介 7
2.3 C#编程简介 9
3 人工智能五子棋游戏的设计 11
3.1 模块介绍 11
3.2 软件各功能模块描述 11
3.2.1 五子棋游戏 12
3.2.2 先手玩家 13
3.2.3 悔棋、认输、求和 13
3.2.4 保存棋局 13
3.2.5 音乐控制 13
3.2.6 帮助和关于 14
3.3 程序操作流程图 14
4 人工智能五子棋游戏的实现 15
4.1 用户界面类-FRMMAIN 15
4.2 棋子类-STONE 16
4.2.1 主要成员变量说明 16
4.2.2 主要成员函数说明 16
4.3 规则类---RULE 17
4.3.1 主要成员函数说明 17
4.4 电脑类的实现--COMPUTER 22
4.4.1 主要成员变量说明 22
4.4.2 主要成员函数说明 22
4.5 棋盘类的实现—CHESSBOARD 24
4.5.1 主要成员变量说明 25
4.5.2 主要成员函数说明 25
5 结论 28
致 谢 29
参考文献 30
1 绪论
1.1 课题的背景
人工智能是一门边沿学科,属于自然科学和社会科学的交叉,涉及哲学和认知科学,数学,神经生理学,心理学,计算机科学,信息论,控制论,不定性论等多个学科。它是计算机科学的一个分支,它企图了解智能的实质,并生产出一种新的能以人类智能相似的方式作出反应的智能机器。该领域的研究包括机器人、语言识别、图像识别、自然语言处理和专家系统等。人工智能的发展历史是和计算机科学与技术的发展史联系在一起的。研究者们发展了众多理论和原理,人工智能的概念也随之扩展。
.......
五子棋起源于四千多年前的尧帝时期,其规则简单,简单易学,富有趣味,不仅能增强思维能力,提高智力,而且有助于修身养性。
本课题对人工智能与五子棋的结合作了一定的学习和研究,并在人工智能的基础上实现了一个小型的五子棋游戏软件,其功能表现为人机对战,电脑表现出一定的智能,能判输赢,并能做出禁手等判别。
本文简述了软件实现所需的技术基础,包括.net开发、c#编程等,并着重阐述了该游戏软件的设计方法、功能实现及主要算法等。
Abstract
Nowadays, as the function of computer hardware and system software continue to improve, Artificial Intelligence has been widely used in various related fields, and plays a greater and greater role. The artificial intelligence is the machines’ behavior looks like the behavior shown by people. To a certain extent, in some areas , the realization of artificialnintelligence can replace human’s works. AI has gradually developed into a high-end technology subjects.
The origins of Gobang is more than 4,000 years ago, since Yao period. Its rules is simple and easy to learn ,and what’s more, full of fun. It can not only enhance the ability to think, improve intelligence, but also do help to self-cultivation.
In this paper, some research has been done in the combination of artificial intelligence , and realized a small Gobang game software based on artificial intelligence. The performance of its functions shown by Human-Computer Fighting, The computer will show some extent of wisdom, which can judge losing or Winning, or to make a cut hand, and other judgements.
This paper also describes the necessary technical basis to finish the software, including .net development,the c # programming, and focus on the user interface of game software, and the main function of achieving algorithm, design principles, and so on.
Key Words: AI;Gobang,;Human-Computer Fighting
目 录
1 绪论 1
1.1 课题的背景 1
1.2 国内外研究状况和相关领域中已有的成果 2
1.3 人工智能分类 3
1.4 设计和研究方法 3
1.5 开发环境及运行环境 4
1.5.1 开发环境 4
1.5.2 运行环境 4
1.6 开发工具 4
1.7 论文结构 5
2 基本理论知识及应用 6
2.1 五子棋系统说明 6
2.2 .NET简介 7
2.3 C#编程简介 9
3 人工智能五子棋游戏的设计 11
3.1 模块介绍 11
3.2 软件各功能模块描述 11
3.2.1 五子棋游戏 12
3.2.2 先手玩家 13
3.2.3 悔棋、认输、求和 13
3.2.4 保存棋局 13
3.2.5 音乐控制 13
3.2.6 帮助和关于 14
3.3 程序操作流程图 14
4 人工智能五子棋游戏的实现 15
4.1 用户界面类-FRMMAIN 15
4.2 棋子类-STONE 16
4.2.1 主要成员变量说明 16
4.2.2 主要成员函数说明 16
4.3 规则类---RULE 17
4.3.1 主要成员函数说明 17
4.4 电脑类的实现--COMPUTER 22
4.4.1 主要成员变量说明 22
4.4.2 主要成员函数说明 22
4.5 棋盘类的实现—CHESSBOARD 24
4.5.1 主要成员变量说明 25
4.5.2 主要成员函数说明 25
5 结论 28
致 谢 29
参考文献 30
1 绪论
1.1 课题的背景
人工智能是一门边沿学科,属于自然科学和社会科学的交叉,涉及哲学和认知科学,数学,神经生理学,心理学,计算机科学,信息论,控制论,不定性论等多个学科。它是计算机科学的一个分支,它企图了解智能的实质,并生产出一种新的能以人类智能相似的方式作出反应的智能机器。该领域的研究包括机器人、语言识别、图像识别、自然语言处理和专家系统等。人工智能的发展历史是和计算机科学与技术的发展史联系在一起的。研究者们发展了众多理论和原理,人工智能的概念也随之扩展。
.......
全文与附件
提交申请后,可在会员中心查看原件和附件的查找进度。
