-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathresult_screen.py
More file actions
64 lines (46 loc) · 3.77 KB
/
Copy pathresult_screen.py
File metadata and controls
64 lines (46 loc) · 3.77 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
56
57
58
59
60
61
62
63
from rich.console import Console
from rich.panel import Panel
from rich.align import Align
from rich.text import Text
RECALL_ART = """
▓▒░░▒▓█▓▒░░░░ ▄▄▒▓█▓▒▒▒▒▒▓█▓ ▄▄▒▓█▓▒▒▒▒▒▓█▓ ▄▄▒▓█▓▒▒▒▄▄ █▓▒▓▓ █▓▒▓▓
███░▒▓██▓▒░▒▒▒░ ▄▓▓░▒▓██▓▒░▒▒▒▒▒ ▄██░▒▓██▓▒░▒▒▒▒▒ █░░▒▓█░░▒▓▓▓▓▄ ▓▓▓▓▒ ▓▓▓▓▒
█▓▓▓░ ░▓▓▓▓░ █▒▒▒░▀ ░▓▓▓▓░ █▓▓▓░▀ ░▓▓▓▓░ █▒▒░░▀ ▀░▒▒▒▒▌ █▒▒▒░ █▒▒▒░
▓▒▒▒░ ▐▓███▓▀ ▓░░░░▄▄▄ ▒████░ ▓▒▒▒░ ▒████░ ▓▓▓▒░ ▒░░░░░ ▓░░░░ ▓░░░░
▒░░░▒▄▄▄▄███▓▀ ▒░░░▒░▒▓ ▀▀▀▀▀▀ ▒░░░▒ ▀▀▀▀▀▀ ▒██▓▒▄▄▄▄▄▓░░░░▒ ▒░░░▒ ▒░░░▒
░░░░▒▒▓▓███▒▓▓▄ ░▒▒▒▓ ▄▄▄▄▄▄ ░░░░▓ ▄▄▄▄▄▄ ░▓▓█▓▓▓▓▒▒▒▒▒▒▒▓ ░▒▒▒▓ ▄▄▄▄▄▄ ░▒▒▒▓ ▄▄▄▄▄▄
░▒▒▒█ ▀█▒▓▓▓█ ░▓▓▓█ █▒▒▒▒█ ░▒▒▒░ █▒▒▒▒█ ░▒▒▓█ █▓▓▓▓█ ░▓▓▓█ █▒▒▒▒█ ░▓▓▓█ █▒▒▒▒█
▒▓▓▓▓ ▓░░▒▒▓ ▀▓▒▒▒█▄▄▄▄▓░░░░▓ ▀▓▓▓▓█▄▄▄▄▓░░░░▓ ▒░░░▓ ▓▒▒▒▒▓ ▀▓▒▒▒█▄▄▄▄▓░░░░▓ ▀▓▒▒▒█▄▄▄▄▓░░░░▓
▓▓▓▓▓ ▒░▒▒▒▓ ▀▀▓▓▓▒▒▒░░░░░▒ ▀▀▓▓▓▒▒▒░░░░░▒ ▓░░░▒ ▒░░░░▒ ▀▀▓▓▓▒▒▒░░░░░▒ ▀▀▓▓▓▒▒▒░░░░░▒
"""
def render_title(console : Console):
t = Text(RECALL_ART)
t.stylize("bold white", 0, len(RECALL_ART) // 2)
t.stylize(
"bold red", len(RECALL_ART) // 3, len(RECALL_ART) // 3 + len(RECALL_ART) // 6
)
console.print(Align.center(t))
console.print(
Align.center(
" A N A I M Y S T E R Y G A M E", style="dim white"
)
)
def render_result(killer: str, completion_status: bool, remark: str):
console : Console = Console()
verdict: str = "CRIMINAL CAUGHT" if completion_status else "CRIMINAL ESCAPED"
frame: str = f"""
╔════════════════════════ CASE REPORT ════════════════════════╗
KLLER : {killer}
VERDICT : {verdict}
REMARK : {remark}
╚══════════════════════════════════════════════════════════════╝
"""
render_title(console)
console.print(
Align.center(
Text(frame, style="red"),
vertical="middle",
)
)
if __name__ == "__main__":
print("RUN game_loop.py")