毕业论文
基于C++语言的智力游戏的设计
四川师范大学经济职业学院
学院(系): 计算机科学与技术
专业班级: 软件工程2
学生姓名:
指导老师:
内容摘要: C++语言是一种面向对象的语言,尽管在当前,可视化语言发展迅速,普及很快,但C++语言作为一种基础的语言,它的有时依然存在,甚至有时它是不可替代的,特别是和硬件接口技术相联系的软件。五子棋游戏是一种简单大众的游戏,自从计算机实现以来,深受广大电脑玩家的喜爱,现在流行的五子棋游戏软件大多缺乏美观的界面,和容易的操作方法,电脑的AI值也不是很高。本文通过C++语言在计算机图形方面的编程,设计了五子棋游戏软件,使该软件具有美观友好的截面,在人机对弈时,使电脑具有较高的智商。本游戏是以C++语言作为开发工具,采用搜索算法设计最优落子点开发的游戏软件。本文详细地介绍了五子棋游戏软件设计的全过程,描述了该软件的功能,以及和其它五子棋程序的一些比较。
关键词:C++语言面向对象语言最优落子算法
Disigned of Puzzle based on C++ Language
Abstract: The C++ language is an object oriedted language, although in the current visualization language rapidly, and spread quickly, but the C++ language as a basis for language, its advantages still exist, and sometimes it is irreplaceable, particularly hardware and software interfaces are linked. Gobang game is a simple and popular game, since puter to achieve, by the love puter players, but now most popular game soft gobang lack aesthetic interface, and easy method of operation, the value of puter AI is not high. The adoption of the C++ programming language puter graphics, designed gobang game software to enable the software with a beautiful and friendly interface in both game, puter has a higher IQ. The game is based on C++ language, using searching algorrithm to design best gobang. The detailed presentation of the whole process of gobang game software design, describes the software functions and procedures and other gobang other gobang some more.
Keywords: C++ language object oriedted language best algorithm
目录
前言 5
一、五子棋介绍及其开发环境 5
(一)五子棋介绍 6
(二)开发背景 6
(三)开发环境及运行环境 6
6
6
二、软件结构 7
(一)棋盘类 7
(二)游戏模式类 7
三、棋盘类——Ctable 8
(一)主要成员变量说明 8
(二)主要成员函数说明 9
——Accept、Connect、Receive 9
——Clear 9
——Draw 9
——OnLButtonUp 10
——OnPaint 10
——Over 10
——SetGameMode 10
——Win 11
四、游戏模式类——CGame 11
(一)主要成员变量说明 12
——m_pTable 12
——m_StepList 12
(二)主要成员函数说明 12
——Back 12
——Init 12
毕业设计(论文)-基于C++语言的智力游戏的设计 来自淘豆网m.daumloan.com转载请标明出处.