基于Android的五子棋游戏
设计 【关键词】机器人,生命周期,算法,线程关键词】
软件工程
【摘要】本论文主要阐述以面向对象的
程序开发语言eclipse为开发工具,基于智能手机Android之上设计一个五子棋游戏。五子棋起源于中国古代的传统黑白棋种之一,它不仅能增强思维能力提高智力,而且富含哲理,有助于修身养性。本
系统是本系统中设定了人机对战和人人对战两种模式。人机对战实现的是一些简单的算法,人人对战只是进行了输赢方的判定。它与javame的五子棋设计有许多的不一样,Android本来就是全触摸的形式,而且操作非常简单。
ThefiveinarowgamebasedonAndroid
【Abstract】Thispapermainlyexpoundstheobject-orientedprogramdevelopmentinAbstract】eclipseforlanguagedevelopmenttool,smartphoneAndroidbasedonabovedesignafiveinarowgame.GobangoriginatedinChinaancienttraditionalblackwhitekind,itnotonlycanenhanceoneofthinkingcapacity,improveintelligenceandhighinphilosophy,helpstocultivateone'smoralityraisesagender.Thissyste
misthesystemthatsettheman-machineagainstandeveryoneagainsttwopatterns.Therealizationman-machineagainstsomesimplealgorithm,everyonewasagainstjustwinthejudgementoftheparty.Ithaswiththejavamegobangchess
-1-
designmanyaredissimilar,Androidistheentiretouchingformoriginally,moreoveroperatesissimple.【Key
words】Android,Activity,arithmetic,Thread】
目
录
绪论........................................................................41开发概述..................................................................61.1背景................................................................61.2课题来源............................................................71.3国内外研究现状......................................................71.4论文主要
工作........................................................82Android的开发环境........................................................82.1操作系统............................................................82.2Android开发环境.....................................................92.3Android开发环境变量配置.............................................9
-2-
2.3.1jdk的配置.....................................................92.3.2sdk的配置....................................................102.4eclipse设置........................................................102.5Android开发环境配置最终步骤........................................113Android应用程序核心.....................................................113.1应用程序基础........................................................113.2应用程序组件.......................................................123.2.1、活动(Activities)...........................................123.2.2、服务(Services)............................................153.2.3、广播接收者(Broadcastreceivers)............................163.2.4、内容提供者(Contentproviders)..............................174相关技术概念.............................................................174.1坐标布局(AbsoluteLayout)..........................................174.2Intent.....