@mkhoi/

# BRUTAL NUMBER GUESSING GAME!!!

Files
• main.py
main.py
```1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
```
```import replit
import random
import time

replit.clear()
def game():
print ("Generating...")
num = random.randrange(1,1001)
time.sleep(2)

print ("OK! You have a number of guesses and the number you have to guess is between 1 and 1000 (including 1 and 1000)")
time.sleep(1)
print ("1.semi-god (1 guess)")
print ("2.normal mode (10 guesses)")
print ("3.shy guy (50 guesses)")
gamemode = input("")

if gamemode == "1":
nump = int(input(">"))
time.sleep(0.5)
if nump == num:
print ("That's right! You win!")
else:
print ("Nope! You lose!")
time.sleep(1)
print ("Click Run again to play again!")
elif gamemode == "2":
for guess in range(1,11):
print ("Guess %d"% guess)
nump = int(input(">"))
time.sleep(0.5)
if nump == num:
print ("WOW! That's right pal!")
break
else:
print ("Nope")
time.sleep(1)
guess = guess + 1
print ("Click Run to play again!")
elif gamemode == "3":
for shyer in range(1,51):
print ("Guess %d"% shyer)
nump = int(input(">"))
time.sleep(0.5)
if nump == num:
print ("That's pretty good for a shyer (jk, not meaning to be mean, ok?)")
print ("You win!")
break
else:
print ("Nope")
time.sleep(1)
shyer = shyer + 1
print ("Click Run to play again!")

game()

```