-
Notifications
You must be signed in to change notification settings - Fork 334
/
magic8.cpp
115 lines (68 loc) · 1.59 KB
/
magic8.cpp
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
#include <iostream>
#include <cstdlib>
int main() {
std::cout << "MAGIC 🎱 SAYS: \n\n";
srand(time(NULL));
int choice = std::rand() % 20;
if (choice == 0) {
std::cout << "It is certain.\n";
}
else if (choice == 1) {
std::cout << "It is decidedly so.\n";
}
else if (choice == 2) {
std::cout << "Without a doubt.\n";
}
else if (choice == 3) {
std::cout << "Yes - definitely.\n";
}
else if (choice == 4) {
std::cout << "You may rely on it.\n";
}
else if (choice == 5) {
std::cout << "As I see it, yes.\n";
}
else if (choice == 6) {
std::cout << "Most likely.\n";
}
else if (choice == 7) {
std::cout << "Outlook good.\n";
}
else if (choice == 8) {
std::cout << "Yes.\n";
}
else if (choice == 9) {
std::cout << "Signs point to yes.\n";
}
else if (choice == 10) {
std::cout << "Reply hazy, try again.\n";
}
else if (choice == 11) {
std::cout << "Ask again later.\n";
}
else if (choice == 12) {
std::cout << "Better not tell you now.\n";
}
else if (choice == 13) {
std::cout << "Cannot predict now.\n";
}
else if (choice == 14) {
std::cout << "Concentrate and ask again.\n";
}
else if (choice == 15) {
std::cout << "Don't count on it.\n";
}
else if (choice == 16) {
std::cout << "My reply is no.\n";
}
else if (choice == 17) {
std::cout << "My sources say no.\n";
}
else if (choice == 18) {
std::cout << "Outlook not so good.\n";
}
else {
std::cout << "Very doubtful.\n";
}
return 0;
}