-
-
Notifications
You must be signed in to change notification settings - Fork 85
Expand file tree
/
Copy pathwestley.alt.c
More file actions
116 lines (116 loc) · 2.17 KB
/
westley.alt.c
File metadata and controls
116 lines (116 loc) · 2.17 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
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
#include<stdio.h>
#include<stdlib.h>
int main()
{
#if rop&onut&((own&rain)|warf)
printf("The orc scrambles to the drain,\n"
"trying to get the donut; you\n"
"run out the door and escape!\n"
"\n"
" The End\n");
exit(0);
#else
#if escribe
#if ocument
printf("It reads:\n"
" Depress Dotted Dog\n");
exit(0);
#else
#if oor
printf("The door is decorated with relief\n"
"figures of various dog breeds.\n");
exit(0);
#else
#if rain
printf("Through the drain you see a dwarf\n"
"in another cell.\n");
exit(0);
#else
#if warf
printf("The gnarled dwarf looks thirsty.\n");
exit(0);
#else
#if ungeon|ebris
printf("You notice a desk, a phone, and\n"
"a phone directory among the clutter.\n");
exit(0);
#else
#if esk
printf("There are some dimes on the desk.\n");
exit(0);
#else
#if irectory
printf("It reads:\n"
" Pixie's Pub -\n"
" instant service -\n"
" Dial DUNgeon0614\n");
exit(0);
#else
printf("You notice nothing unusual.\n");
exit(0);
#endif
#endif
#endif
#endif
#endif
#endif
#endif
#else
#if ial&UNgeon0614
printf("Pixie takes your order, and\n"
"magically, the room is filled\n"
"with banana daiquiris.\n");
exit(0);
#endif
#if rink&aiquiri
printf("As you drink, a voice from\n"
"below says 'Could you drop\n"
"one down here?'\n");
exit(0);
#endif
#if rop&aiquiri
#if warf|own
printf("The dwarf eagerly accepts\n"
"the drink. 'Thanks! Here,\n"
"I found this, but I can't\n"
"understand it.' He hands\n"
"you a document.\n");
exit(0);
#else
printf("You drop the drink\n"
"on the floor.\n");
exit(0);
#endif
#endif
#if epress&(almatian|almation)
printf("As you press the dalmatian\n"
"figure, the door opens - only\n"
"to reveal a menacing orc by\n"
"a vending machine (with a\n"
"sign reading 'DEPOSIT MONEY').\n");
exit(0);
#endif
#if eposit&(ime|imes)
printf("Donuts spill out; you get\n"
"some, the orc hungrily eats\n"
"the rest.\n");
exit(0);
#endif
#if rop&onut
printf("The orc quickly eats the\n"
"donut; he still bars the\n"
"way.\n");
exit(0);
#endif
#if rop+epress+ime+eposit+rink+aiquiri+onut==1
printf("Be more specific.\n");
exit(0);
#endif
printf("You are in a debris-filled\n"
"dungeon; a door bars the\n"
"way, and sludge trickles into\n"
"a floor drain.\n");
exit(0);
#endif
#endif
}