资源描述:
《基于android平台的数独游戏设计—本科毕业设计》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、摘要数独(Sudoku)是一种运用纸、笔进行演算的数学智力游戏。玩家需要根据9×9盘面上的已知数字,推理出所有剩余空格的数字,并满足每一行、每一列、每一个小九宫内的数字均含1~9,而且不重复。每一道合格的数独谜题都有且仅有唯一答案,推理方法也以此为基础,任何无解或多解的题目都是不合格的。随着搭载Android系统的智能手机在中国的普及,不论何时,不论何地,在智能手机端玩数独游戏成为一种方便快捷的新需求。数独游戏出现错误时,必须回退一步或几步并擦除已经填入的大部分数字,在智能手机上玩数独游戏可以随时修改单元格中的数字。数独游戏规
2、则需要根据已有数字进行推理判断,不仅具有很强的趣味性,而且能锻炼我们的逻辑思维能力。本课题研究设计一款运行在Android平台的数独游戏软件。该课题主要使用Java语言开发,运行于Android操作系统,实现了数独游戏的基本功能。关键词:数独;Android;手机游戏;Java-ABSTRACTSudokuisamathpuzzlegameplayedwithpaperandpen.Playersneedtobefilled9×9diskwithknownfigures,reasoningotherfigureout,andm
3、eeteachrow,eachcolumn,eachsmallnineintrauterinefigures1to9inclusive,andnotrepeat.EveryqualifiedSudokupuzzlesonlyhaveoneuniqueanswer,butalsoasabasisforreasoningmethod,nosolutionoranysolutionquestionsareunqualified.WithAndroidpoweredsmartphonespopularinChina,nomatterw
4、hen,nomatterwhere,palyingsudokugameinthesmartphonebecomeaconvenientnewdemands.Sudokuerroroccurs,orthestepsyoumusttakeastepbackanderasethefiguresalreadyfilled.onthesmartphonesudokucanbemodifiedinacellnumber.Sudokurulesneedtobebasedontheexistingnumberofreasoningjudgme
5、nt,notonlyhasastronginterest,butalsotoexerciseourabilitytothinklogically.ThisstudyisdesignedaSudokugamesoftwaretorunontheAndroidplatform.UsingJavalanguageandrunsontheAndroidoperatingsystem,toachievethebasicfunctionsofSudoku.Sudokuisamathpuzzlegameplayedwithpaperandp
6、en.According-tothefilled9×9diskwithknownfigures,playersneedtoreasonoutotherfigures,whichmustmeeteachrow,eachcolumn,eachsmallnineintrauterinefigures1to9inclusive,andnotrepeat.EveryqualifiedSudokupuzzlehasandonlyhasoneuniqueanswer.Asabasisforreasoningmethod,nosolution
7、oranyothersolutionquestionsareunqualified.WiththerapidpopularizationofandroidpoweredsmartphonesinChina,nomatterwhenorwhere,palyingsudokugameinthesmartphonebecomesanewfashion.WhenSudokuerroroccurs,youmusttakeastepbackanddeletethefiguresalreadyfilled.PlayingSudokugame
8、onthesmartphone,youcanconvenientlymodifythenumbers.Sudokurulesmustbaseontheexistingnumberofreasoningjudgment,whichnotonlyhaveastrongintere