MAIN LOGIC:image buttons of rock paper and scissor have been created and have been given tags of 1,2 and 3 respectively which are stored in variable userSelection. These are used to decide what the user has chosen. the computer generates a random variable which has either 1, 2 or 3 in it which is stored in compSelection. This can be used to decide the choice of computer. Using nested switch case on compSelection nested within userSelection, The Scores and the textViews are updated. When 1 of the scores reaches 5, a new activity is opened using Intent in which the winner is displayed. The option of Play Again and Quit is also provided.
-
Notifications
You must be signed in to change notification settings - Fork 0
adwaitv/rockPaperScissorApp
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published