文档介绍:编号:
审定成绩:
重庆邮电大学
毕业设计(论文)
设计(论文)题目:
VC++简易五子棋游戏的实现
学院名称:
计算机科学与技术
学生姓名:
专业:
计算机科学与技术
班级:
学号:
指导教师:
答辩组负责人:
填表时间: 年月
重庆邮电大学教务处制
摘要
现如今,游戏产业的快速发展不仅使其成为社会的热门行业之一,而且在一定程度上计算机游戏开发已经成为IT技术创新最有力的背后推手,游戏开发者和玩家常常是前沿计算机技术的最早应用者。
五子棋是一种深受大众喜爱的游戏,其规则简单,变化多端。它不仅能增强思维能力,提高智力,而且富含哲理,有助于修身养性。人工智能是近年来很活跃的研究领域之一,以计算机博弈为代表的人工智能技术在游戏中的应用不仅极大地提高了游戏的可玩性,而且对它的研究也为人工智能领域带来了很多重要的方法和理论,产生了广泛的社会影响和学术影响。
本系统利用五子棋游戏作为研究对象,设计出一个能够实现“人机对战”和“网络对战”两种不同模式的五子棋游戏。并对其中所涉及到的相关技术进行初步的探讨,重点为“人机对战”中的策略型AI的研究。
【关键字】五子棋计算机博弈策略型AI 网络通信
ABSTRACT
Nowadays, the game industry’s rapid development not only causes it to e one of the social popular professions, moreover puter game developed already became one of the most powerful hands behind of the IT technological innovation. Game developers and gamers the forefront puter technology is often the earliest adopters.
The Gobang is a well-loved game; its rules are simple and varied. It not only can enhance the thinking ability, improve the intelligence and rich in philosophy will help self-cultivation.
This system uses renju game as the research object, and designed two different patterns of the renju game: the “puter against” and “-Online Play”. In addition, it gives a preliminary discussion about the related technologies involved in, key for in puter against model’s AI algorithm research.
【Key words】Renju AI Game work Service
目录
前言 1
第一章 绪论 2
第一节电脑游戏简介 2
一、什么是游戏 2
二、电脑游戏 2
三、五子棋游戏简介 6
第二节开发平台及关键技术简介 7
一、开发环境 7
二、Visual C++简介 7
三、人工智能概念 8
四、网络编程技术 9
第三节本章小结 9
第二章 需求分析 10
第一节可行性分析 10
一、问题定义 10
二、可行性研究 10
第二节用户需求分析 11
一、系统功能需求 11
二、一般性描述 12
三、目标系统其它需求 16
第三节本章小结 16
第三章 软件系统设计与实现 17
第一节概要设计 17
一、设计指导思想 17
二、小小五子棋游戏软件结构图 18
三、数据设计 18
第二节详细设计与实现 19
一、初始登陆界面设计 19
二、程序主窗口设计 20
三、人机对战模块设计 21
四、网络对战模块设计 29
hessboard类解析 35
第三节本章小结 38
第四章 系统测试 39
第一节测试环境 39
一、硬件环境 39
二、软件环境 39
第二节界面测试 39
一、初始登陆界面测试 39
二、游戏主界面测试 40
第三节人机对战模块测试 41
第四节网络对战模块测试 42
第五节本章小结 43
结论 44
致谢 45
参考文献 46
附录 47
一、英文原文 47
二、英文翻译 49