Leave a rating/review
Welcome to the final part of “Your First Kotlin Android App: An App from Scratch.” As the grand finale, you’ll complete the items in your programming todos list by adding points calculation to the game.
You’ll start off by learning about the Kotlin standard library. It is just a collection of ready-made functions that helps you perform some common operations and you’ll use it to generate a random target number in Bullseye.
You’ll then learn more about functions and create a function to calculate the points.
You’ll write different iterations of this function starting from a very basic verison and then improve on it till we develop an optimal solution.
During these iterations, you’ll learn about more Kotlin features like conditional statements such as the if/else statement,
type inference and so much more. You’ll also get a lot of practice with some things we covered in previous parts,
because it’s all about learning via repetition.
So get ready and let’s dive in!!!