Menú

Guessing Game

Guessing Game - student project

This is the code for a guessing game. The console will first ask if you'd like to play. If any variation of capitalization of the word "yes" is entered, the game will begin, otherwise, the console will tell you to have a nice day. Once the game starts, the console will then state that it's thinking of a number between 1 and 10, and will ask you to guess the number. if you guess correctly, the console will congratulate you, otherwise, it will tell you that you're incorrect, and will ask you to guess again. Once you've guessed the number, the console will also tell you how many guesses it took for you to guess correctly, and will either praise you or critique you depending on how many guesses it took.