100 Days of Code: The Complete Python Pro Boot Camp – Day 12 Project
Create a Guess the Number Game.
Computer chooses random number between 1 and 100.
User selects gameplay difficulty (Easy = 10 tries and Hard = 5 tries).
Computer will compare guess with random number and advise if too high or too low. Will tell user how many tires left and ask to guess again until user guesses correctly or runs out of tries.
Ask user if would like to play again. If yes, restart the game. If no, end game.
- Choose ‘Open in Replit’
- Select ‘Run’ to play/replay the game.
- Enter answers into the console where you see the tiny square at the end of sentences.