1、 I 毕业设计(论文)毕业设计(论文) 设计(论文)题目:设计(论文)题目:LinuxLinux环境下五子棋游戏设计环境下五子棋游戏设计 姓姓 名名 学学 号号 院院 (系)(系) 数学与计算机学院数学与计算机学院 专专 业业 信息管理与信息系统信息管理与信息系统 20142014年年 5 5月月1313日日 II 摘摘 要要 五子棋起源于古代中国,发展于日本,风靡于欧洲,不仅以其简单易学的特性, 为广大群众所喜闻乐见,而且又有深奥的技巧和高水平的国际性比赛。它的棋文化源 渊流长, 具有东方的神秘和西方的直观,既有“场”的概念,亦有“点”的连接, 它是中西文化的交流点,是古今哲理的结晶。 五子
2、棋是一种两人对弈的纯策略型棋类游戏, 应用 C 语言编写程序可以在计算机 上实现二人对弈五子棋功能。二人对弈五子棋程序由图像生成、光标移动与落子、判 断胜负和系统帮助等子程序构成;程序中应用了结构体、数组、全局变量、按键处理 和图形编程等元素和语句。程序通过棋盘和棋子图像生成、二人移子与落子和判断胜 负等功能的实现,在计算机上实现了二人五子棋对弈。 关键词:关键词:C C 语言;五子棋;数组;图形编程语言;五子棋;数组;图形编程 III abstract Gobang game is originated in ancient China, development in Japan, popu
3、lar in Europe, not only for its simple properties, as the masses love to see and hear, but also has a profound skills and a high level of international competition. Its chess culture origin is long, has the Eastern mysticism and western visual, both “ field “ concept, also has a“ point“ connection,
4、it is the point of cultural communication, is the crystallization of ancient and modern philosophy. Gobang is a traditional checker-type game in which the lining up of five pieces in a straight line scores victory. And C language can accomplish a 2-player gobang on computers. This 2-player gobang pr
5、ogram contains 4 main sections, they are, graphics, movement and selection, victory judgment and helping system. Several elements and sentences of C programming language such as structural element, array, global variables, press processing and Graphics Programming are also applied in the program. Wi
6、th the accomplishment of the three main subprograms, namely, checker board and pieces construction, players step-selection and victory judgment, a whole program of gobang is established and gobang is available on computers. Keywords: C programing language, Gobang, Array, Graphics Programming, I 目目 录录 摘摘 要要 .II abstract III 1 1 概述概述 . 1 1.1 1.1 开发背景开发背景 . 1 1.2 1.2 开发目的和意义开发目的和意义. 1 1.3 1.3 开发目标开发目标 . 2 2 2 程序的介绍与规划程序的介绍与规