-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtext_gallows.cpp
More file actions
33 lines (29 loc) · 1.48 KB
/
text_gallows.cpp
File metadata and controls
33 lines (29 loc) · 1.48 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
#include <array>
#include "ansi.h"
#include "text_gallows.h"
const char *leg = " | |\n | |\n | |\n | |\n/ /\n---";
const std::string brown = ANSI::colour256(94);
const std::string yellow = ANSI::colour256(226);
const std::string light_blue = ANSI::colour256(33);
const std::string light_green = ANSI::colour256(154);
const std::array<TextGallowsEntry, 11> TextGallows::gallows_entries_ = {
TextGallowsEntry{24, 1, brown + "------------------------------------"},
TextGallowsEntry{2, 2, brown + "|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|\n|"},
TextGallowsEntry{1, 3, brown + "-----------------------"},
TextGallowsEntry{2, 3, brown + " /\n/"},
TextGallowsEntry{2, 24, brown + "|\n|"},
TextGallowsEntry{
4,
21,
yellow + " -----\n| " + light_blue + "o o" + yellow + " |\n| " + light_blue + "o" + yellow + " |\n -----"},
TextGallowsEntry{
8,
18,
yellow + " ____|_|____\n| |\n| " + light_green + "O" + yellow + " |\n| " + light_green +
"O" + yellow + " |\n| " + light_green + "O" + yellow + " |\n| " + light_green + "O" +
yellow + " |\n| |\n -----------"},
TextGallowsEntry{8, 11, yellow + " ___\n / _\n / /\n / /\n-----\n|___|\n|_|_|"},
TextGallowsEntry{8, 31, yellow + "___\n_ \\\n \\ \\\n \\ \\\n -----\n |___|\n |_|_|"},
TextGallowsEntry{16, 18, yellow + leg},
TextGallowsEntry{16, 25, yellow + leg}
};