-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrng.py
More file actions
51 lines (29 loc) · 1.22 KB
/
Copy pathrng.py
File metadata and controls
51 lines (29 loc) · 1.22 KB
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
import random
intentos = 0
nombre = input("¿Como te llamas aventurero?: ")
while True:
Blas = input("quieres empezar?: ")
if Blas == "si":
val = random.randint(1,100)
if val > 96:
print("obtuviste netherite")
intentos=intentos+1
print("felicidades",nombre," te tomo",intentos,"intentos encontrar netherite")
break
if val <= 81 and val >= 95:
print("obtuviste diamante")
intentos=intentos+1
if val <= 80 and val >= 51:
print("obtuviste hierro")
intentos=intentos+1
if val <= 50 and val >= 11:
print("obtuviste tierra")
intentos=intentos+1
if val <= 10:
print("era una trampa + 5 intentos")
intentos=intentos+5
if Blas == "netherite":
print("obtuviste netherite")
intentos=intentos+1
print("felicidades",nombre," te tomo",intentos,"intentos encontrar netherite")
break