Number Guessing Game - Try it
Back to projectsStart from a blank editor and follow the directions below.
Project directions
- Pick a random number between 1 and 100.
- Ask the player for guesses in a loop until they get it correct.
- Print a hint after each wrong guess (too high or too low).
- Track the number of attempts and display it when the player wins.
Loading editor and runtime...