In this exercise, you will be implementing a game known as Hotter or Colder. This exercise will give you a chance to (a) practice your Swift skills such as variables, if-statements, etc (b) practice your app building skills and (c) teach you about the TextField UI object. Also, by the end of it, you will have a really fun game to play when you're bored (and show to friends and family)!
Here's how the game works.
- The app chooses a secret number at random between 1 and 100, and the user is asked to guess it.
- If the guess is too low, the program should display "You're too cold". If the guess is too high, it shows "You're too hot".
- This repeats till the user guesses the secret number.
- When this happens, the program outputs, "Congratulations, you did it!".