-
Notifications
You must be signed in to change notification settings - Fork 3
/
room2.py
126 lines (116 loc) · 3.26 KB
/
room2.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
import random
from pip._vendor.colorama import Fore, Back, Style
def axe_room():
print('Welcome to the Axe Room Challenge. Do you have what it takes?')
welcome = input('Please enter key from Wizard Room: ')
axe_total = 10
target_hit = 0
game_on = True
t = """
(╯ ͠° ͟ʖ ͡°)╯┻━┻
"""
d = """
**********************
* *
* *
* MISS *
* *
* *
* *
* OOOOO *
* *
* ( ˘︹˘ ) *
* *
* *
* *
**********************
"""
s = """
**********************
* *
* *
* HIT *
* *
* *
* *
* XXX *
* *
* *
* (っ^▿^) *
* *
* *
**********************
"""
if welcome == 'goldenwizard':
pass
while game_on == True and target_hit < 3:
print()
print('***************************')
print()
print(' Three targets appear!')
print()
print('***************************')
print()
print()
target = random.randint(1, 6)
message = input("Throw your axe at the target? Enter 'yes' or 'no'. If you enter something different it will probably break. So don't. :D ")
if target < 5 and message == 'yes':
target_hit += 1
axe_total -= 1
print()
print()
print('You hit the target!')
print()
print(s)
print('***************************')
print()
print('Total targets hit ')
print()
print(target_hit)
print()
print('Axes remaining')
print()
print(axe_total)
print()
print('***************************')
print()
print()
elif target > 4 and message == 'yes':
axe_total -= 1
print()
print('You Missed the target!')
print()
print('***************************')
print()
print()
print(d)
print()
print('Total Targets Hit')
print()
print(target_hit)
print()
print('Axes remaining')
print()
print(axe_total)
print()
print('***************************')
print()
print()
elif message == 'no':
print()
print('What are you scared?')
print()
print(t)
print()
print()
else:
print('*****************************************************')
print()
print('YOU WON THE GAME!!!!')
print()
print('Here is your Golden Axe! Use this Golden Axe to continue through the maze!')
print()
print('Your code for Axe Room is: ' + Fore.YELLOW + 'goldenaxe')
print()
print(Fore.WHITE + '*****************************************************')
axe_room()