Number Guessing Game – Part Three

In this lesson, students will learn:

  • How to make sure the player can only enter numbers, not words, into the input field.
  • How the player can enter a guess with the Enter key, as well as with the mouse.
  • How to prevent the player from counting to play after the game is finished.
  • How to randomize the mystery number.