Let’s build a game: Rock, Paper, ScissorsHow the game will workA high-level design of the gameHere’s what we’re going to doGet started: create the projectGet the game to choose an optionCreate the Rock, Paper, Scissors arrayHow you create functionsYou can send things to a functionYou can send more than one thing to a functionCalling a two-parameter function, and sending it two argumentsYou can pass arguments to a function so long as the argument type matches the parameter typeYou can get things back from a functionFunctions with no return valueFunctions with single-expression bodiesCreate the getGameChoice functionCode MagnetsCode Magnets SolutionAdd the getGameChoice function to Game.ktBehind the scenes: what happensThe story continuesThe getUserChoice functionAsk for the user’s choiceHow for loops workLooping through a range of numbersUse downTo to reverse the rangeUse step to skip numbers in the rangeLooping through the items in an arrayAsk the user for their choiceUse the readLine function to read the user’s inputWe need to validate the user’s input‘And’ and ‘Or’ operators (&& and ||)Not equals (!= and !)Use parentheses to make your code clearAdd the getUserChoice function to Game.ktTest driveWe need to print the resultsAdd the printResult function to Game.ktTest driveYour Kotlin Toolbox