Skip to content

adwaitv/rockPaperScissorApp

Repository files navigation

rockPaperScissorApp

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages