This is an archived version of the course. Please find the latest version of the course on the main webpage.

Chapter 4: Improving the guessing game

Making the guessing game more exciting!

Continuing on from our previous video, perhaps we should not have given users infinite chances to get their guess correct?

Summary:

  • We have added multiple conditions to the while loop.
  • Beware of logical/semantic errors!
  • Use variables as constants to make it easier to maintain your code and future-proof.