没有合适的资源?快使用搜索试试~ 我知道了~
大学毕业论文-—基于android的五子棋游戏的设计.doc
0 下载量 5 浏览量
2023-07-08
22:08:48
上传
评论
收藏 1.72MB DOC 举报
温馨提示
试读
42页
大学毕业论文-—基于android的五子棋游戏的设计.doc
资源推荐
资源详情
资源评论
- 1 -
本科毕业设计(论文)
题 目: 基于 Android 的
五子棋游戏设计
院 系: 计算机与信息工程学院
- 2 -
基于 Android 的五子棋游戏设计
摘 要
移动互联网时代的到来极大的改变了我们的生活,而 Android 是一种以 Linux 为基础
的开放源码操作系统迅速占领了智能机操作系统,所以在 android 环境下开发显得尤为必
要。本文详细介绍了在 Android 平台上以 Java 为语言编写游戏的过程。五子棋游戏的开发
不仅是一个简单游戏的编写过程,更重要的是在系统分析和设计阶段所做的工作。本文在设
计过程中严格遵循软件工程学的方法,用分阶段的生命周期计划严格管理,并主要讲述了程
序的总体设计、详细设计阶段,对程序进行需求迭代,不断修正和改进,利用 surface 重绘等数
据存储功能,直到形成一个完善的可行性系统.界面美观、大方,方便的操作与良好的视觉感
应共同构成了“基于 Android 平台的五子棋游戏设计与开发”的设计。
关键词: Android,Java,数据存储,软件工程,五子棋
- 3 -
The five in a row game based on Android
Abstract
Arrival of the mobile Internet era has greatly changed our lives, and Android is a Linux-based
open source operating system quickly occupied the smartphone operating system, Android development
is particularly necessary under the circumstances. This paper focus on a "based on the Android platfo
rm of Five in a Row game design and development" program design and application system develom
ent issues as the background, introduces in detail in the Android platform to Java language write gam
es for the process.The development of the Quintet game is not just a progress of programing. What’s
more, we need to pay more attention to the work on the period of systematic analysis and design.Th
e program follows the software engineering strictly and narrates the major design and section. Thispro
gram maily talk about the period of the system design and the detailed design. And also it will stud
y on the bug fixing and improvements. By using the some fuctiong of datalogging such as the surfac
e, it build a practicable system. The nice and expert interface and good visual introduction form the
design which is based on the designing and development of Android platform Five-in-a-row game.
Key words: Android,java, Data Storage,Software Engineering, Five in a Row
- 4 -
目 录
1.绪论 ...........................................................................................................................................5
1.1 背景......................................................................................................................................................................7
1.2 课题来源..............................................................................................................................................................7
1.3 国内外研究现状..................................................................................................................................................8
1.4 论文主要工作......................................................................................................................................................8
2 ANDROID 的开发环境 .............................................................................................................9
2.1 操作系统..............................................................................................................................................................9
2.2 ANDROID 开发环境 .............................................................................................................................................9
2.3 ANDROID 开发环境变量配置 ...........................................................................................................................10
2.3.1 jdk
的配置
..................................................................................................................................................10
2.3.2 sdk
的配置
..................................................................................................................................................11
2.4 ECLIPSE 设置 ......................................................................................................................................................11
2.5 ANDROID 开发环境配置最终步骤 ...................................................................................................................12
3 ANDROID 的架构分析 ...........................................................................................................12
3.1 ANDROID 的功能特征 .......................................................................................................................................12
3.2 ANDROID 架构分析 ...........................................................................................................................................14
3.2.1
应用程序框架
............................................................................................................................................14
3.2.2
类库
............................................................................................................................................................15
3.2.3 Android
运行时的组件
..............................................................................................................................16
3.3 ANDROID 应用的构成和工作机制 ...................................................................................................................16
4 ANDROID 应用程序架构结构剖析 .......................................................................................16
4.1 应用程序基础 ....................................................................................................................................................17
4.2 应用程序组件....................................................................................................................................................17
4.2.1
活动(
Activities
)
.....................................................................................................................................18
4.2.2
服务(
Services
)
.......................................................................................................................................20
4.2.3
广播接收者(
Broadcast receivers
)
.......................................................................................................21
4.2.4
内容提供者(
Content providers
)
..........................................................................................................22
5 程序的设计与实现 ...................................................................................................................22
5.1 程序的算法研究:............................................................................................................................................23
5.1.1
棋盘布局的数据结构
................................................................................................................................23
5.1.2
行棋坐标判定
............................................................................................................................................24
5.1.3
胜负的判定
................................................................................................................................................25
5.2 流程设计............................................................................................................................................................26
5.3 游戏的实现:....................................................................................................................................................27
5.4 改进与优化........................................................................................................................................................29
总结 ...............................................................................................................................................30
参考文献 .......................................................................................................................................31
附录 1 ............................................................................................................................................32
- 5 -
1.绪论
智能手机(Smartphone),具有独立的操作系统,像个人电脑一样支持用户自行安装软件、游
戏等第三方服务商提供的程序,并通过此类程序不断对手机的功能进行扩充,同时可通过移动
通讯网络来实现无线网络接入。目前,全球多数手机厂商都有智能手机产品,而芬兰诺基亚、
美国苹果、加拿大 RIM(黑莓)、美国摩托罗拉、中国台湾宏达(htc)更是智能机中的佼佼者。
智能手机具有五大特点:1. 具备了无线接入互联网的能力,即要有 GSM 的支持网络下的 GPRS 或
者是 CDMA 网络支持下的 CDMA 1X 或 3G 网络。2. 人性化,可以根据个人需要扩展机器的功能。3.
它是具有开放性的操作系统,还可以安装非常多的应用程序,使得智能手机的功能可以得到无限的扩展。
4. 具有 PDA 功能,其中包括个人信息管理、日程记事、任务安排、多媒体应用、浏览网页。5.强大的
功能,扩展性能强,第三方软件支持多。
剩余41页未读,继续阅读
资源评论
zzzzl333
- 粉丝: 676
- 资源: 7万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功