(完整版)五子棋游戏的设计与实现毕业设计

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

毕业论文(设

计)

题目五子棋游戏的设计与实

所在院(系)数学与计算机科学学

专业班级信息与计算科学1101班

指导教师拓守恒

完成地点陕西理工学院

2015年5 月18日

五子棋游戏的设计与实现

作者:王勇

(陕理工学院数学与计算机科学学院信息与计算科学专业1101班,陕西汉中

723000)

指导教师:拓守恒

[摘要]五子棋是起源于我国古代的黑白棋种之一,是一种简单的娱乐性较强的大众游戏,深受广大玩家的喜爱,但同时作为比赛,五子棋游戏还有着深奥的技巧。

本系统的实现采用了C语言的模块化的程序设计方式,用Visual C++ 6.0软件来实现程序的编译运行。实现黑白两方分别落子,通过棋盘上方的棋盘动态信息提示,轮流落子,本系统中游戏的每一个功能在程序中都是一个相对独立的模块,比如,棋盘模块,棋子模块,选择游戏模式模块,悔棋模块等等在程序中都是独立的,但它们之间通过逻辑关系的链接又构成了一个可以使游戏正常运行的程序。

为实现游戏的双人对战模式和人机对战模式,并使得游戏尽量的简单化,本系统需要达成以下目标:设计一个简洁的游戏初始界面;制定合法规则,使游戏能公正的进行,并且可以断定胜;支持人机对战模式,可以是电脑通过人工智能和合法规则选出最优落子位置;可以悔棋,在玩家落子落错位置时,可按下悔棋键进行悔棋。

[关键词]五子棋,游戏设计,C语言,双人对战,人机对战,人工智能

Designer and implementation of gobang game

Author: wangyong

(Grade11,Class 1, Major in Information and computing science, Mathematics and

computer science Dept.

Tutor: Tuo shouheng

Abstract:Gobang is one of the black and white kind of originated in ancient China, is a simple and entertaining stronger mass games, loved by the majority of players, but at the same time as the game, gobang game with profound skills.

The implementation of this system method, using Visual C + + 6.0 software to realize the program compiler running. Implementation of black and white two parties move later, respectively, by the board at the top of the dynamic message board, take turns to move later, this game in the system each function in the program is a relatively independent modules, such as, the board module, pawn module, select game mode module, back module and so on in the program are independent, but the link through the logical relationship between them and form a can make the normal operation of the game program.

In order to realize the double mode and man-machine game mode, and make the game as far as possible the simplification, the system needs to achieve the following goals: design a simple game of initial interface;the legal rules, can make the game fair, and you can call;support the man-machine

mode, can be a computer by artificial intelligence and legal rules to select the optimal move later;

can take back, fall in the players move later fault location, can press the back button to back.

Key words:gobang,Game design,The C Programming Language ,Double against,The

man-machine against,Artificial intelligence(AI)

目录

1.绪论 ...........................................................................................................

1.1 引言..................................................

1.2 研究的背景及意义......................................

1.2.1研究背景..........................................

1.2.2研究意义..........................................

1.3 基本目标及主要内容....................................

相关文档
最新文档