Number Guessing Game - Try it

Back to projects

Start from a blank editor and follow the directions below.

Project directions
  1. Pick a random number between 1 and 100.
  2. Ask the player for guesses in a loop until they get it correct.
  3. Print a hint after each wrong guess (too high or too low).
  4. Track the number of attempts and display it when the player wins.
Loading editor and runtime...
Coil