dimanche 5 mai 2019

How to give random Boolean value to two buttons (one true, other false) in Kotlin (Android Studio)?

I am just starting my Android app development using Kotlin. As my first project I want to make an app which contains two buttons in which either of the button contains 1 and the other contains 0 randomly. The user need to guess which button is true and if the button they clicked is true, the score will add by 1. Each time the person clicks true, a new random Boolean gets generated into the two buttons. If the persons get's it wrong, the game stops and the final score is displayed.




Aucun commentaire:

Enregistrer un commentaire