Linux环境下五子棋游戏设计(毕业设计论文)终稿技术方案.doc

Linux环境下五子棋游戏设计(毕业设计论文)终稿技术方案.doc

武汉轻工大学 毕业设计(论文) 设计(论文)题目:Linux环境下五子棋游戏设计 姓 名 何志军 学 号 100502121 院 (系) 数学与计算机学院 专 业 信息管理与信息系统 指导老师 吴 巍 2014年 5月13日 摘 要 五子棋起源于古代中国,发展于日本,风靡于欧洲,不仅以其简单易学的特性,为广大群众所喜闻乐见,而且又有深奥的技巧和高水平的国际性比赛。它的棋文化源渊流长, 具有东方的神秘和西方的直观,既有“场”的概念,亦有“点”的连接,它是中西文化的交流点,是古今哲理的结晶。 五子棋是一种两人对弈的纯策略型棋类游戏,应用C语言编写程序可以在计算机上实现二人对弈五子棋功能。二人对弈五子棋程序由图像生成、光标移动与落子、判断胜负和系统帮助等子程序构成;程序中应用了结构体、数组、全局变量、按键处理和图形编程等元素和语句。程序通过棋盘和棋子图像生成、二人移子与落子和判断胜负等功能的实现,在计算机上实现了二人五子棋对弈。 关键词:C语言;五子棋;数组;图形编程 abstract Gobang game is originated in ancient China, development in Japan, popular 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, 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 program 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. With 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, 目 录 摘 要 II abstract III 1 概述 1 1.1 开发背景 1 1.2 开发目的和意义 1 1.3 开发目标 2 2程序的介绍与规划 3 2.1程序设计 3 2.3程序的实现目的 3 3程序分析与总体设计 4 3.1 程序需求分析 4 3.1.1 用户需

文档评论(0)

1亿VIP精品文档

相关文档