Hello coding fam... I am a little lost with the guess(char)Boolean aka hangman game... I can’t get it to build in Gradle file and I’m fairly new to Kotlin ... can someone please give me some knowledge...👨🏾💻🗣🤘🏽
@AppliDev Note: The project will not build or run until you complete the following steps
First, you'll need to write is the makeGuess(c: Char) : Pair<String, Boolean> method. This method will allow the user to make a guess with a single Character, and will return two values (a Pair) that represent the masked or incomplete word (ie: lmbd) and a Boolean (true/false) for whether or not they have won. Some of the code for this method has been written for you -- you'll learn more about the Kotlin-specific data types like Pair and Triple later in the course.
Complete the method that returns the list of guessed letters - getUsedLetters() : HashSet<Char>
Write the method that returns the word to be guessed - getWordToGuess() : String
Write the method that determines if the game is over or not - isGameOver() : Boolean
Complete the private method for determining if a guess is correct, and returns either the correct guessed letter, or an underscore - isCorrectGuess(c: Char): Char
Once steps 1-5 are complete, run and test your game. If everything works correctly, you're done! Otherwise, debug and fix any issues you encounter.