Guess game
Name: Aditya Semwal
Date: Jan 27, 2023
Student # 2210568
the purpose of this program is to generate a random number and let the user guess that number
Date: Jan 27, 2023
Student # 2210568
the purpose of this program is to generate a random number and let the user guess that number
See my program here: https://replit.com/@adityasemwal15/Adityaguessgame?v=1
adityaguessgame.zip |
First choose your difficult
1 for easy or 2 for medium or 3 for hard
4
Invalid Input
1 for easy or 2 for medium or 3 for hard
6
Invalid Input
1 for easy or 2 for medium or 3 for hard
1
I am thinking of a number between 1 - 10 guess the number
1
Too low
2 tries left
I am thinking of a number between 1 - 10 guess the number
1
Too low
1 tries left
I am thinking of a number between 1 - 10 guess the number
1
Too low
0 tries left
No tries left
The number was 2 Thank you for playing
In this program you will be guessing the number that I think of
First choose your difficult
1 for easy or 2 for medium or 3 for hard
2
I am thinking of a number between 1 - 100 guess the number
3
Too low
9 tries left
I am thinking of a number between 1 - 100 guess the number
45
Too high
8 tries left
I am thinking of a number between 1 - 100 guess the number
34
Too high
7 tries left
I am thinking of a number between 1 - 100 guess the number
33
Too high
6 tries left
I am thinking of a number between 1 - 100 guess the number
22
Too low
5 tries left
I am thinking of a number between 1 - 100 guess the number
1
Too low
4 tries left
I am thinking of a number between 1 - 100 guess the number
36
Too high
3 tries left
I am thinking of a number between 1 - 100 guess the number
22
Too low
2 tries left
I am thinking of a number between 1 - 100 guess the number
30
Too high
1 tries left
I am thinking of a number between 1 - 100 guess the number
25
Too high
0 tries left
No tries left
The number was 24 Thank you for playing
In this program you will be guessing the number that I think of
First choose your difficult
1 for easy or 2 for medium or 3 for hard
1
I am thinking of a number between 1 - 10 guess the number
2
Too low
2 tries left
I am thinking of a number between 1 - 10 guess the number
5
Correct! That was the right number
Do you want to repeat the program Y/y = yes or N/n = nu
Invalid input
Do you want to repeat the program Y/y = yes or N/n = ny
Invalid input
1 for easy or 2 for medium or 3 for hard
1
I am thinking of a number between 1 - 10 guess the number
6
Too high
2 tries left
I am thinking of a number between 1 - 10 guess the number
5
Too high
1 tries left
I am thinking of a number between 1 - 10 guess the number
3
Too high
0 tries left
No tries left
The number was 1 Thank you for playing
In this program you will be guessing the number that I think of
First choose your difficult
1 for easy or 2 for medium or 3 for hard
1
I am thinking of a number between 1 - 10 guess the number
5
Too low
2 tries left
I am thinking of a number between 1 - 10 guess the number
7
Too high
1 tries left
I am thinking of a number between 1 - 10 guess the number
6
Correct! That was the right number
Do you want to repeat the program Y/y = yes or N/n = nn
Thank you for playing