1、 毕业设计论文毕业设计论文 系部 计算机与软件学院 专业 软件技术(移动应用开发) 题目 基于安卓的五子棋游戏 指导教师 评阅教师 完成时间: 2012 年 5 月 10 日 毕业设计毕业设计( (论文论文) )中文摘要中文摘要 题目:基于安卓的五子棋游戏 摘要摘要:近年来,随着安卓手机的普及,安卓游戏成为广大用户关注的方向。五 子棋作为一个棋类竞技运动,在民间十分流行,为了熟悉五子棋规则及技巧, 以及研究简单的人工智能,决定用 Java 开发五子棋游戏,主要完成人机对战 的功能。 本文结合五子棋这个游戏的特点,将阐述单机版五子棋算法设计,突出人 工智能在博弈方面的应用, 而选五子棋游戏的开发
2、则是利用计算机来实现它的 人工智能,从而培养我们从事软件开发方面的能力。 在本程序中,主要使用 eclipse 开发工具,使用 Java 开发语言进行五子 棋游戏的设计。 关键词关键词:安卓游戏 五子棋 人机对战 毕业设计毕业设计( (论文论文) )外文摘要外文摘要 Title : Title : Based on the Android of gobang game AbstractAbstract: : In recent years, with the popularity of Android phone, Android games will cause direction of c
3、ustomers attention. Gobang as a chess athletics, is very popular in civil. In order to become familiar with the game rules and techniques, and the study of simple artificial intelligence, so I decided to use Java to develop gobang game, mainly complete the function of man-machine battle. In this pro
4、gram ,combating the features of gobang game, will elaborate the algorithm design of gobang, and prominent the artificial intelligence in the application of the game, and choosing the gobang game development is using computer to realize its artificial intelligence, and training our ability in softwar
5、e development. In this program, I use eclipse development tool and Java language to design gobang game. keywords:keywords: Android games gobang man-machine battle I 目录 1 引言 1 1.1 安卓游戏. 1 1.2 课题背景. 2 1.3 我的主要工作. 2 2 项目概述与需求分析 3 2.1 项目概述. 3 2.2 需求分析. 3 3 概要设计 4 3.1 五子棋解释. 4 3.2 五子棋的基本规则. 5 3.3 五子棋的相关术
6、语. 5 3.4 程序设计分析. 5 3.5 数据流图. 6 4 详细设计 6 4.1 用例图. 6 4.2 类图. 8 4.3 棋盘界面设计. 10 4.4 核心实现代码. 12 5 运行测试 16 5.1 程序测试. 16 5.2 测试方法和测试用例. 18 5.3 测试结论. 18 5.4 运行效果图. 18 结论 20 致谢 21 参考文献 21 1 1 1 引言引言 1.1 1.1 安卓游戏安卓游戏 运行在安卓系统平台的游戏,运行在安卓平台的游戏深受大家的喜爱。 现在,Android 游戏不但可以运行于智能手机,也可以运行在平板电脑上。 1.1.1 安卓游戏发展趋势 将向专业化、大规模化方向发展,随着各平台对 OpenGL ES 支持能力 的大力加强,使得开发复杂的 3D 场景游戏成为可能。更多显示芯片对 Android 的支持,硬件性能将不再成为制约专业化游戏发展的瓶颈。越来越