-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdiagrams.py
More file actions
55 lines (49 loc) · 1.47 KB
/
diagrams.py
File metadata and controls
55 lines (49 loc) · 1.47 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
52
53
54
55
"""
Variable RED used to add colour to diagrams
"""
RED = '\033[0;31m'
def header():
"""
Prints main header 'Chris's Hangman' in colour Red
"""
print(RED +
"""
___ _ _ _
/ __\\ |__ _ __(_)___( )__
/ / | '_ \\| '__| / __|/ __|
/ /___| | | | | | \\__ \\__ \\
\\____/|_| |_|_| |_|___/|___/
/\\ /\\__ _ _ __ __ _ _ __ ___ __ _ _ __
/ /_/ / _` | '_ \\ / _` | '_ ` _ \\ / _` | '_ \\
/ __ / (_| | | | | (_| | | | | | | (_| | | | |
\\/ /_/ \\__,_|_| |_|\\__, |_| |_| |_|\\__,_|_| |_|
|___/
"""
)
def player_lost():
"""
Prints 'Game over' when user's lives reach 0
"""
print(
"""
___
/ _ \\__ _ _ __ ___ ___ _____ _____ _ __
/ /_\\/ _` | '_ ` _ \\ / _ \\ / _ \\ \\ / / _ \\ '__|
/ /_\\ (_| | | | | | | __/ | (_) \\ V / __/ |
\\____/\\__,_|_| |_| |_|\\___| \\___/ \\_/ \\___|_|
"""
)
def player_won():
"""
Prints 'You Win' when a user correctly guesses a word
"""
print(
"""
__ __ _ _ _ _
\\ \\ / / | | | (_) | |
\\ V /___ _ _ | | | |_ _ __ | |
\\ // _ \\| | | | | |/\\| | | '_ \\| |
| | (_) | |_| | \\ /\\ / | | | |_|
\\_/\\___/ \\__,_| \\/ \\/|_|_| |_(_)
"""
)