I recently studied a project about digital games on Android platform.
Nine buttons randomly generate nine numbers, regenerate into a target number, let players click the button to add the target number.
I’m very interested in this project.
Share my code.
First, we should create 9 variables as numbers on the button, when the start button is pressed, a random number will be generated, and the target number is also generated in this way. But this design may have defects, the target number may not be generated by adding the letters on the button.
And then use timer on design page, open it when the button was click.
Then when click the button of number, click times will be count, number on button will be add to sum. Then the check function will be run.