毕业论文
当前位置:首页 > 论文范文 > 毕业论文 > 列表页

安卓象棋毕业论文

小草范文网  发布于:2016-12-25  分类: 毕业论文 手机版

篇一:基于Android的中国象棋毕业设计

摘 要

现在智能操作系统迅速发展,使得智能手机和其他的智能移动设备得到广泛普及,因此,智能操作系统的应用软件开发及其需要的服务将有广阔的发展前景。而Android是开放性体系架构,不仅具有非常好的开发、调试环境,而且还支持各种可扩展的用户体验,包括丰富的图形组件、多媒体支持功能以及强大的浏览器。因此,对于软件从业人员来说,Android平台具有无限的吸引力。另一方面,Android系统是基于Linux内核而开发的,他的上层应用软件都是基于JAVA技术开发的。JAVA是一门面向对象的开发语言,拥有更好的可移植性、健壮性和安全性,对于人性化的设计更为方便。

本文在分析讨论Android应用软件开发技术原理的基础上,开发出基于Android平台的中国象棋人人对弈的游戏软件。通过对Android系统架构和应用开发进行初步研究,设计一款中国象棋的单机版游戏。在对系统进行详细需求分析的基础上,确定了系统的功能和性能要求,对游戏的欢迎界面、屏幕绘制、棋盘绘制、布局算法等进行设计,并最终实现一个界面友好、高效稳定和富有娱乐性和对战性的Android应用软件。

关键词:Android系统; 中国象棋; JAVA; 智能手机

Abstract

Now, the smartphone operating system is developed rapidly, making smart phones and other smart mobile devices widely available, so the smart operating system and application software development services required will have broad prospects for development. The Android is an open architecture, not only has a very good development and debugging environment, but also supports a variety of scalable user experience, including rich graphical components, multimedia support, and powerful browser. Therefore, for software professionals , Android platform has unlimited appeal. On the other hand, Android system is developed based on the Linux kernel, and his upper application software is based on JAVA technology development. JAVA is an object-oriented development language, with better portability、robustness and security for the user-friendly design is more convenient.

This paper discusses the analysis of Android application development technology principle,on this basis, for the users to develop Chinese Chess software that is based on Android system and that is just for one vs one. Through the Android system architecture and application development for a preliminary study to design a stand-alone version of Chinese chess game. In the system, it needs to conduct a detailed analysis to determine the system's functional and performance requirements, carries on the design to the game's welcome screen, screen painting, drawing board, layout algorithm , and ultimately to achieve a user-friendly, efficient and stable and rich entertainment and Battle of Android applications.

Keywords: Android system; Chinese chess; JAVA; smartphones

目 录

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

1.1 中国象棋的背景介绍.................................................................................... 1

1.1.1 中国象棋的历史起源.......................................................................... 1

1.1.2 中国象棋的发展现状与前景.............................................................. 1

1.2 Android操作系统简介 ................................................................................. 2

1.2.1 Android操作系统背景 ....................................................................... 2

1.2.2 Android系统的优势与弊端 ............................................................... 3

1.2.3 Android操作系统的现状与发展前景 ............................................... 4

2 Android系统的架构与开发环境 ........................................................................... 6

2.1 Android的体系结构 ..................................................................................... 6

2.2 Android的四大组件 ..................................................................................... 8

2.3 Android开发环境的搭建 ............................................................................. 9

2.3.1 Java JDK的安装 .............................................................................. 9

2.3.2 eclipse的下载与使用 ......................................................................... 9

2.3.3 Android开发工具的安装 ................................................................... 9

2.3.4 Android工程的建立 ......................................................................... 10

3 中国象棋的走法规则与实现分析........................................................................ 13

3.1 中国象棋的走法规则.................................................................................. 13

3.1.1 棋盘和棋子介绍................................................................................ 13

3.1.2 中国象棋的规则和胜负的判定........................................................ 14

3.2 中国象棋的走法分析.................................................................................. 15

4 中国象棋软件的主要功能和界面布局................................................................ 19

4.1 中国象棋软件实现的主要功能.................................................................. 19

4.2 软件的主要布局与实现.............................................................................. 20

4.2.1 开始游戏选项界面............................................................................ 20

4.2.2 中国象棋选项界面............................................................................ 22

5 中国象棋的算法设计与实现................................................................................ 24

5.1 工程的建立.................................................................................................. 24

5.2 工程模块的介绍.......................................................................................... 25

5.2.1 各个类主要实现的功能.................................................................... 25

5.2.2 工程中其他模块的介绍.................................................................... 26

5.3 中国象棋的逻辑算法和实现...................................................................... 26

5.3.1 棋盘和棋子的算法分析.................................................................... 26

5.3.3 棋盘和棋子的绘制............................................................................ 28

5.3.4 棋子的算法实现................................................................................ 30

6 问题与软件的改进................................................................................................ 32

6.1 遇到的问题与解决方法.............................................................................. 32

6.2 软件所需的改进.......................................................................................... 33

结束语................(转载自:www.xiaocaOfaNWen.com 小草 范 文 网:安卓象棋毕业论文).......................................................................................................... 34

参考文献...................................................................................................................... 35

致谢.............................................................................................................................. 36

附录.............................................................................................................................. 38

1 绪论

1.1 中国象棋的背景介绍

1.1.1 中国象棋的历史起源

象棋应该说是源自汉朝,比魏晋时期的围棋要早上三四百年。自从刘邦斩白蛇起义,跟项羽约定先占咸阳者为王。由于项羽牵制了秦军主力,刘邦很快便打进了咸阳,擒获秦二世子婴,却始终畏惧楚霸王之威,不敢称王,驻兵于霸桥等待项羽。这时项羽军因对境遇不满投来一名帐前的执戟郎,名叫韩信,来到刘邦部下却依然不受重用,一怒之下月夜出走,于是演出了一幕“萧何月下追韩信”,自此韩信拜将,刘邦开始与项羽分庭抗礼,封为汉中王,划地而治。

后来刘邦采用韩信明修栈道,暗渡陈仓之计,击败守卫汉中要路的三秦降将章邯等,开始了与项羽争夺天下的序曲。刘邦部向西于项羽军交兵,屡战屡败,韩信部却移师向东采用置之死地而后生的战法击溃齐王陈余,并自称“代齐王”。刘邦为解东部之危,封韩信齐王,请求速援。韩信先用骄兵之计引项羽深入,在陔下布防以十面埋伏一举击溃项羽主力,并一路追击,迫使项羽自刎乌江。刘邦恐其功高震主,平定天下后削其兵权,仅封其为淮阴候,许诺即使韩信犯错也可以“见天不杀,见地不杀,见铁器不杀” 。

后来刘邦终究对韩信畏惧,召入宫中,诬以重罪,限于三不杀之令,打入天牢,在做牢期间,韩信闲来无事想把自己的兵法传于后世,自创一种游戏,称为“玩棋”,教与牢卒,说练熟后可以明攻战之法,成一代名家。后来由吕后出毒计,把韩信关在一个小黑屋里,用绳子将他吊在空中,拿竹签扎死,不违三不杀之说,但“玩棋”却渐渐流传到世上,后来又被改成为象棋。

按韩信的说法,能研究透象棋的人,就可以深通韬略,成一代兵师,在民间象棋也远比围棋开展的更为普及,深受群众喜爱。

经过近百年的实践,象棋于北宋末定型成近代模式:32枚棋子, 有河界的棋盘,将和帅在九宫之中等等,至此之后,中国象棋在民间广为流传,堪称我国的国粹与精华。

1.1.2 中国象棋的发展现状与前景

现代社会是一个科技与信息的时代,随着社会的发展,传统的中国象棋慢慢的被抛弃,现在已处在一个边缘化状态,以前老人或者孩子在大街小巷“将”、“吃”的声音已经基本看不到了。那么,作为中国的国粹,为什么如今会走下坡路呢?归根究底,我觉得最主要的有如下两个方面的原因:

篇二:毕业论文-中国象棋手机游戏

基于Android操作系统的中国象棋手机游戏

Chinese Chess Application based on Android Mobile OS

指 导 老 师 :xxxxxxxxxxx

姓名

学号

学院

专业 xxxxxxxxxx xxxxxxxxxx软 件 学 院软 件 工 程::::

声 明

本人郑重声明:

所呈交的毕业设计(论文)是本人在指导教师指导下进行的研究工作及取得的研究成果。其中除加以标注和致谢的地方,以及法律规定允许的之外,不包含其他人已经发表或撰写完成并以某种方式公开过的研究成果,也不包含为获得其他教育机构的学位或证书而作的材料。其他同志对本研究所做的任何贡献均已在文中作了明确的说明并表示谢意。

本毕业设计(论文)成果是本人在江西师范大学读书期间在指导教师指导下取得的,成果归xxx大学所有。

特此声明。

声明人(毕业设计(论文)作者)学号:

声明人(毕业设计(论文)作者)签名:

签名日期: 年 月 日

摘 要

摘 要

cnChess是运行在Android平台上的一款支持双人联网对局、即时聊天、对弈记录的休闲棋牌类手机游戏。

系统采用面向对象的编程思想进行构思与分析设计;使用UML构建软件模型;使用MVC架构模式实现系统的整体架构及各模块之间的接口设计;在系统的实践过程中还采用了部分GoF的设计模式进行编码与开发。

本文详细系统地阐述了在Android平台上,应用MVC分层架构模式及面向对象的软件开发思想对cnChess游戏系统的分析、设计及实现过程。在项目的实践过程中,主要用到了以下技术:手机布局主要使用了XML设计,程序及其子模块的生命周期管理用到了Activity流程控制,数据储存方面使用的是轻量级数据库SQLite、网络通讯部分使用的是XMPP即时通讯协议进行数据的传输、对弈的画面更新使用的是手机的2D图形编程。本论文的前半部分将简要介绍系统相关的行业信息及基础的技术知识,后半部分将对本人在系统各模块中所使用的关键技术的实现进行了全面的介绍。

关键词:联网对弈;中国象棋;手机游戏 ;Android平台

ABSTRACT

ABSTRACT

CnChess is a Chinese Chess game that running on the Android platform.It support many of the features such as playing games through the network, real-time chat, and play chess records of casual mobile games.

The CnChess game is object-oriented programming design and analysis of the idea of thinking; build software models using UML; use of MVC architecture patterns to achieve the overall system and the interface between the module designs; in practice the system also uses some of the GoF's design patterns to coding and development.

This paper systematically expounded in the Android platform, the application of MVC pattern and hierarchical structure of object-oriented software development thoughts cnChess game system analysis, design and implementation process. Practice in the course of the project, mainly used in the following technologies: cell phones primarily use XML layout design, process and life cycle management sub-module uses the Activity process control, data storage areas using a lightweight database SQLite, netwrok communication Some use the XMPP instant messaging protocol for data transmission, public debate of the frame using a mobile phone 2D graphics programming. The first part of this paper will briefly introduce the system based on relevant industry information and technical knowledge, the latter part of each module in the system; I will be in the key technology used in the realization of a comprehensive introduction.

Keywords: Network of games; Chinese chess; Mobile Games; Android platform

目 录

目 录

第1章 绪论 ........................................... 1

1.1问题的提出 ........................................................................................................1

1.2相关研究综述 ....................................................................................................1

1.2.1 Android手机操作系统的发展历程................................................................. 1

1.2.2 国内外关于Android手机应用程序的研究及开发现状................................... 2

1.3研究目标与内容 ................................................................................................2

1.3.1 研究目标..................................................................................................... 2

1.3.2 研究主要内容.............................................................................................. 2

第2章 Android程序设计相关技术概述 ..................... 4

2.1 XUL界面布局 ...................................................................................................4

2.2 Android的Activity组件 ...................................................................................4

2.3 SQLite数据库 ....................................................................................................5

2.4 XMPP协议 ........................................................................................................5

2.5 Android 2D图形编程 ........................................................................................5

2.6 MVC模式简介 ..................................................................................................5

第3章 系统的分析与实现 ................................ 7

3.1系统分析 ............................................................................................................7

3.1.1 系统功能分析 ............................................................................................ 7

3.1.2 系统流程分析 ............................................................................................ 8

3.1.3 系统数据流分析 ........................................................................................ 9

3.2 系统数据库设计 ...............................................................................................9

3.2.1 系统E-R图................................................................................................. 9

3.2.2 数据库表设计............................................................................................ 10

3.3 面向对象的系统设计 .....................................................................................10

3.3.1 系统文件组织结构..................................................................................... 10

篇三:基于Android技术的中国象棋人机对弈游戏的设计与实现毕业设计论文

西安邮电大学

毕 业 设 计(论 文)

android技术的中国象棋人机对 弈游戏的设计与实现

目:基于

目 录

摘要 ...................................................... I ABSTRACT .................................................... II

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

1.1 研究背景 ....................................................... 1

1.1.1中国象棋背景 .............................................. 1

1.1.2 Android系统简介 .......................................... 1

1.2 本论文研究意义 ................................................. 3

2设计相关技术理论 ........................................... 5

2.1 游戏系统开发平台及搭建 ......................................... 5

2.2 可行性研究 ..................................................... 6

3游戏系统功能分析与设计 ..................................... 7

3.1 界面的需求分析 ................................................. 7

3.2游戏走棋需求设计分析 ............................................ 7

3.3类框架的设计 .................................................... 8

4 游戏系统的设计与实现 ....................................... 9

4.1游戏界面的设计 .................................................. 9

4.1.1 共有类ChessActivity的实现 ............................... 9

4.1.2 辅助界面相关类的实现 ..................................... 9

4.1.3 游戏界面相关类的实现 ..................................... 9

4.2 中国象棋的规则及走法的实现 .................................... 10

4.2.1行棋规则 ................................................. 10

4.2.2棋盘的表示 ............................................... 22

4.3 游戏人机会话的实现 ............................................ 23

4.3.1 着法的生成 .............................................. 23

4.3.2 搜索算法 ................................................ 24

4.3.3 局面评估 ................................................ 26

5 游戏系统模块的设计实现 .................................... 28

5.1 欢迎界面 ...................................................... 28

5.2菜单界面 ....................................................... 28

5.3 帮助界面 ...................................................... 30

5.4游戏界面 ....................................................... 30

6 运行测试 .................................................. 34

7 结束语 .................................................... 35

致 谢 ...................................................... 36

参考文献 .................................................... 37

附录: ...................................................... 38

译文 ........................................................ 48

摘要

中国象棋是一款智力休闲游戏,具有历史悠久而且拥有巨大的游戏爱好者群体,他们以中国象棋陶冶情操、锻炼智力、体验象棋带来的快乐,中国象棋还是一个老少皆宜的娱乐游戏。随着手持设备、智能手机的普及,搭载Android操作系统的智能手机也已经走进了千家万户,当人们闲暇偶尔需要娱乐时,却发现没有实物象棋,该软件不失为一个很好的替代品,供大家进行娱乐享受,尤其是在现在这个快节奏的社会中 ,人们更满足于手机的使用,可以方便地随意移动,不像实物象棋那样静静的坐着。

论文通过实际应用软件的开发深入分析和研究Android开发技术。实现中国象棋的人机会话。本文实现了中国象棋在计算机中表示问题,基于Android平台应用,人机对战模拟现实中的人人对战;讨论走棋规则和着法的实现等一系列问题,最终电脑能够通过产生着法,搜索,估计来产生一步最优的走棋,实现人机会话的目的。

关键字:中国象棋,Android,智能手机,人机对战

ABSTRACT

Chinese Chess is an intellectual casual games, has a long history and has a huge game enthusiasts groups, Chinese Chess edify sentiment, exercise intelligence, experience the joy of chess brought Chinese Chess is an entertainment for all ages games. With the popularity of handheld devices and smart phone, smart phone equipped with Android operating system has entered every household, when people leisure occasionally need entertainment, but found no physical chess, the software would be a good substitute for entertainment, especially in this fast-paced society, people are more satisfied with the use of mobile phones, you can easily move freely, unlike physical chess as sitting quietly.

With the development for the practical application of software, Android development technology was deeply analyzed and researched to achieve human-machine chess battle of Chinese chess in this thesis. This article realization of the Chinese chess in the computer representation that the problem, based on the application of Android platform, a series of questions were discussed about the man-machine war simulate and related playing chess rules and achieving chess moves. Finally, the computer products a best way for computer moves to achieve the purpose of man-machine war with the chess moving and searching and estimating.

Keywords: Chinese Chess,Android,smart phone,man-machine war

1 绪论

1.1 研究背景

1.1.1中国象棋背景

中国象棋发展至今已有两千三、四百年的历史,早在战国时期就有正式的记载,堪称中国的国粹。中国象棋具有悠久的历史,深的人们的喜爱,象棋的爱好者也更是数不胜数,远在战国中国象棋便在贵族阶层广为流传,早期的象棋是象征着当时战斗场面的游戏,后来这种观念慢慢被改变,经过千年的流传不断的完善和改进,成为人们休闲娱乐、锻炼脑力思维不可获取的好方式。

中国象棋体现的是一种策略,方寸之间包含天地玄机,人生哲理,使人越是细玩越觉其味悠然深远。由于简单的行棋规则,趣味性强,便捷的载体,使得象棋成为雅俗共赏的竞技项目。因此,也成为流行极为广泛的棋艺活动。是我国正式开展的78个体育项目之一,为促进该项目在世界范围内的普及和推广,在中国古代,象棋被列为士大夫们的修身之艺,现在则被视为怡神益智的一种有益的活动。有着数以亿计的爱好者。它不仅能丰富文化生活,陶冶情操,在棋战中,人们可以从攻与防、虚与实、整体与局部等复杂关系的变化中悟出某种哲理;更有助于开发智力,启迪思维,锻炼辨证分析能力和培养顽强的意志。

象棋是中华民族的传统文化,不仅在国内深受群众喜爱,而且流传国外。

1.1.2 Android系统简介

Android 系统构架简介:

Android是一个基于Linux?V2.6内核的交互性操作环境,同时它也是一个分层系统,Android系统架构显示如下图1.1。

本文已影响