Assignment 3: Candy Crush
May 2018
1 General Instructions
1. The assignment is to be done in groups of 2 people. You may also choose to work solo.
2. We will be using GitHub for version control. Make sure to regularly commit your changes to your
repository, rather than making a single commit at the end of the assignment. The commit history of the
repository will be checked to verify the same.
3. The deadline for Assignment 2 is 11:59 p.m. on May 20th, 2018. The latest commit in your GitHub
repository, as of 11.59 p.m. on the 20th of May will be considered as your final submission.
4. Academic dishonesty is unacceptable and will not be tolerated in this course. To compare the code
committed by the teams, an automatic system called MOSS will be used for determining the similarity of
the programs.
2 Assignment Description
The aim of this assignment is to develop an Android game that is similar to ”Candy Crush”. It requires you to
incorporate the following features as part of your implementation of ”Candy Crush”.:
1. At the beginning of the game, rows and columns of candy / sweets must appear on the user’s
screen
Figure1:Samplegameboardatthebeginningofthegame
2. User must be allowed to mix and match the sweets on the screen. It is possible to only switch the
positions of two adjacent pieces of candy in each move
3. Two adjacent pieces can be switched if and only if they result in some valid combination of three
or more candies.
4. Any combination of three or more sweets will bring points to the user.
5. After a set of at least three pieces is completed, the candy disappears and the rows or column
above shift down. This introduces more candy, thus providing additional moves.
Figure2 Someexamplemovestoalign3ormoresweets.
6. It can be observed that matching three or more candies of the same color is the only way of
earning points. Each matching set is worth points, the value of which varies based on the row or
column length.
7. The game can be terminated when there are no more possible moves on the board or when the user
reaches a certain target score.
Given the above details, develop an Android Application that mimics the game of Candy Crush.
3 Get your Android development environment working
This page gives a step-by-step procedure for installing an Android environment on either Windows, MacOS or
Linux. You can also find the process on the Android Developers site. Take care to choose the correct operating
system for installation from the drop down menu provided on the page. This course also provides detailed
instructions for installation of Android studio on Windows and MacOS. These procedures get you set up with:
• The Java Development Kit (JDK)
• Android Studio, an integrated development environment (IDE)
• The Android software development kit (SDK), which might be bundled together with Android Studio from above
link
You should be able to use a Linux, Windows or Mac computer to develop for Android.
4 Using GitHub with Android Studio
4.1 AddanAndroidStudioprojecttoGitHub
1. Downloadgitfromhttps://git-scm.com/downloadsandinstallitinyoursystem.
2.OpentheprojectinandroidstudioandgotoFile->Settings->VersionControl->Git.3.Clickontest
buttontotest”pathtoGitexecutablesIfsuccessfulmessageisshowneverythingisok,elsenavigateto
git.exefromwhereyouinstalledgitandtestagain.
4.GotoFile->Settings->VersionControl->GitHub.Enteryouremailandpasswordusedtocreate
GitHubaccountandclickonOKbutton.
5.ThengotoVCS->ImportintoVersionControl->ShareProjectonGitHub.EnterRepositoryname,
DescriptionandclickSharebutton.
6.Inthenextwindow,checkallfilesinordertoaddfilesforinitialcommitandclickOK.
7.Now,theprojectwillbeuploadedtotheGitHubrepositoryandwhenuploadingisfinished,amessage
isobtainedinandroidstudioshowingthattheprojectwassuccessfullysharedonGitHub.Clickonthelink
providedinthatmessagetogototheGitHubrepository.
5 No-Copy Policy
The assignment must contain the following statement in the file “statement.txt”: We, your name and your partner,
hereby certify that the files we submitted represent our own work, that we did not copy any code from any other
person or source, and that we did not share our code with any other students. NOTE: It is acceptable to use code you
find in the Android or Java APIs.
版权所有:编程辅导网 2021 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。