Your First Kotlin Android App: Polishing the App
Jul 14 2022 · Kotlin 1.6, Android 12, Android Studio Bumblebee | 2021.1.1
Part 1: Build Out the App
05. Challenge: Keep Track of Game Rounds
Leave a rating/review
Heads up... You've reached locked video content where the transcript will be shown astext.
You’ve done a bit of coding in this part so it’s now time for your challenge. Your challenge this time is to pause the video, and modify Bull’s Eye to keep track of the current round of the game and display it.
private var currentRound = 1
binding.gameRoundTextView?.text = currentRound.toString()
currentRound += 1 binding.gameRoundTextView?.text = currentRound.toString()
targetValue = Random.nextInt(1, 100) binding.targetTextView.text = targetValue.toString()