基于安卓的在线数独对战游戏平台的
设计与实现
D The design and implementation of the Android-based online
Singo war game platform
学校:
系:
专业:
班级:
学生姓名:
指导教师:
摘 要
数独是源自 18 世纪瑞士的一种数学游戏。是一种运用纸、笔进行演算的逻
辑游戏。研究表明,玩数独游戏能够提高记忆力和头脑清晰度,甚至可以治疗和
预防老年痴呆症等大脑疾病!因此,一些科学家和研究人员建议将数独游戏作为
日常活动的一部分。本研究项目基于 Java 语言和 Android 平台,开发一款在线
数独对战平台 App,利用移动互联网手段为人们带来新的数独体验。
关键字:JAVA Android 数独
Abstract
Sudoku is a mathematical game from 18th-century Switzerland. It is a logical game of
using paper and pen for calculation. Studies have shown that playing Solio can
improve memory and brain clarity, and even treat and prevent brain diseases such as
Alzheimer's disease! As a result, some scientists and researchers suggest that The
Soyo game be part of their daily activities. Based on the Java language and Android
platform, this research project has developed an online Soyo battle platform app
that uses mobile Internet to bring new Singo experiences to people.
Keywords: JAVA Android Sudoku
目录
1.绪论....................................................................................................................6
1.1 研究背景.................................................................................................6
1.2 研究的意义.............................................................................................8
1.3 论文结构................................................................................................9
2.项目可行性分析..............................................................................................10
2.1 系统分析的方法...................................................................................10
2.2 系统可行性分析...................................................................................11
2.3 系统需求分析.......................................................................................12
2.3.1 功能性需求分析........................................................................12
2.3.2 非功能性需求分析 ....................................................................13
3.相关技术简介..................................................................................................14
3.1JAVA 程序语言.......................................................................................15
3.1.1 Java 简介 ....................................................................................15
3.1.2 Java 主要特性 ............................................................................16
3.2 数据库...................................................................................................19
3.3 Android 架构.........................................................................................22
3.3.1 Linux 内核 ..................................................................................23
3.3.2 程序库.......................................................................................23
3.3.3 Android 程序库 ..........................................................................23
3.3.4 应用框架...................................................................................24
3.3.5 应用程序...................................................................................25
4.系统设计实现..................................................................................................25
4.1 开发环境搭建......................................................................................25
4.1.1 window 系统安装 java...............................................................26
4.1.2 安装配置 Android Studio...........................................................30
4.1.3 创建 Android Studio 工程..........................................................30
4.2 设计思路..............................................................................................31
4.2.1 产生符合数独规则的初始矩阵 ................................................31
4.2.2 获胜条件...................................................................................32
4.2.3 界面设计....................................................................................32
4.3 系统详细实现.......................................................................................32
4.3.1 用户登陆的设计与实现 ...........................................................32
4.3.2 在线数独对战...........................................................................33
4.3.3 音效及主题设置.......................................................................34
4.3.4 分享功能....................................................................................35
5.软件测试..........................................................................................................36
5.1 软件测试的目的...................................................................................37
5.2 软件测试的常用方式..........................................................................37
5.2.1 静态测试和动态测试 ................................................................37
5.2.2 黑盒测试、白盒测试和灰盒测试 ............................................38
5.2.4 手动测试和自动化测试 ............................................................39
5.3 测试用例...............................................................................................39
5.4 测试结果...............................................................................................40
6.研究总结..........................................................................................................40
参考文献.............................................................................................................42
致 谢...............................................................................................................43