-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathROOMS.LSP
246 lines (187 loc) · 4.02 KB
/
ROOMS.LSP
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
~
~ ROOMS
~
(PRINT 'ROOMS)
(PACKAGE ROOMS
(PUT OBDESCR WEAPNRM OBSERM LOBBY ELEVATOR)
(PUT LONG-DESCR WEAPNRM OBSERM LOBBY ELEVATOR)
(PUT SHORT-DESCR WEAPNRM OBSERM LOBBY ELEVATOR)
(PUT N WEAPNRM OBSERM LOBBY ELEVATOR)
(PUT NE WEAPNRM OBSERM LOBBY ELEVATOR)
(PUT E WEAPNRM OBSERM LOBBY ELEVATOR)
(PUT SE WEAPNRM OBSERM LOBBY ELEVATOR)
(PUT S WEAPNRM OBSERM LOBBY ELEVATOR)
(PUT SW WEAPNRM OBSERM LOBBY ELEVATOR)
(PUT W WEAPNRM OBSERM LOBBY ELEVATOR)
(PUT NW WEAPNRM OBSERM LOBBY ELEVATOR)
(PUT CONTAINS TOOLBOX1 WEAPNRM OBSERM LOBBY ELEVATOR)
(SETQ FIRSTROOM WELCOMEMSG))
(PUT 'WEAPNRM
'"An empty room"
'OBDESCR)
(PUT 'OBSERM
'"An observation room"
'OBDESCR)
(PUT 'LOBBY
'"A lobby"
'OBDESCR)
(PUT 'ELEVATOR
'"An elevator"
'OBDESCR)
(PUT 'WEAPNRM
'"You are in an empty room except for a closet. To the east
is a room and to the southeast is a dimly lit hall."
'LONG-DESCR)
(PUT 'OBSERM
'"You are in an observation room. A clear dome reveals an
astounding view of the universe. To the southwest is a dimly
lit hall and to the west is another room."
'LONG-DESCR)
(PUT 'LOBBY
'"You are in a dimly lit lobby. Emergency red running lights
bath the room in an otherworldly glow. Halls lead to the
northwest and northeast. A button on the south wall reads
'CALL' and next to the button is an elevator door"
'LONG-DESCR)
(PUT 'ELEVATOR
'"You are in a turbo elevator. A row of lights above you indicate
your current location. A tasteless art-deco lithograph covers the
wall and a symphonic version of 'Let It Be' comes from an invisible
speaker."
'LONG-DESCR)
(PUT 'WEAPNRM
'"The empty room."
'SHORT-DESCR)
(PUT 'OBSERM
'"You are in the observation room."
'SHORT-DESCR)
(PUT 'LOBBY
'"This is the elevator lobby."
'SHORT-DESCR)
(PUT 'ELEVATOR
'"You are in the tasteless turbo elevator"
'SHORT-DESCR)
(PUT 'WEAPNRM
'NIL
'N)
(PUT 'OBSERM
'NIL
'N)
(PUT 'LOBBY
'NIL
'N)
(PUT 'ELEVATOR
'LOBBY
'N)
(PUT 'WEAPNRM
'NIL
'NE)
(PUT 'OBSERM
'NIL
'NE)
(PUT 'LOBBY
'OBSERM
'NE)
(PUT 'ELEVATOR
'NIL
'NE)
(PUT 'WEAPNRM
'OBSERM
'E)
(PUT 'OBSERM
'NIL
'E)
(PUT 'LOBBY
'NIL
'E)
(PUT 'ELEVATOR
'NIL
'E)
(PUT 'WEAPNRM
'LOBBY
'SE)
(PUT 'OBSERM
'NIL
'SE)
(PUT 'LOBBY
'NIL
'SE)
(PUT 'ELEVATOR
'NIL
'SE)
(PUT 'WEAPNRM
'NIL
'S)
(PUT 'OBSERM
'NIL
'S)
(PUT 'LOBBY
'ELEVATOR
'S)
(PUT 'ELEVATOR
'NIL
'S)
(PUT 'WEAPNRM
'NIL
'SW)
(PUT 'OBSERM
'LOBBY
'SW)
(PUT 'LOBBY
'NIL
'SW)
(PUT 'ELEVATOR
'NIL
'SW)
(PUT 'WEAPNRM
'NIL
'W)
(PUT 'OBSERM
'WEAPNRM
'W)
(PUT 'LOBBY
'NIL
'W)
(PUT 'ELEVATOR
'NIL
'W)
(PUT 'WEAPNRM
'NIL
'NW)
(PUT 'OBSERM
'NIL
'NW)
(PUT 'LOBBY
'WEAPNRM
'NW)
(PUT 'ELEVATOR
'NIL
'NW)
(PUT 'TOOLBOX1
'(CAN1 CROWBAR1 BATTERY1)
'CONTAINS)
(PUT 'WEAPNRM
'(CLOSET1)
'CONTAINS)
(PUT 'OBSERM
'(TOOLBOX1)
'CONTAINS)
(PUT 'LOBBY
'(BUTTON1)
'CONTAINS)
(PUT 'ELEVATOR
'NIL
'CONTAINS)
(SETQ FIRSTROOM
'ELEVATOR)
(SETQ WELCOMEMSG
'"
*** Welcome to Microworld ***
Microworld is a fantasy world for you to explore. With enough guile,
low cunning and luck you may survive. To explore Microworld simply
tell me what to do. For example: PICK UP THE APPLE or GO NORTH.
To find out what you have try INVENTORY or TAKE INVENTORY.
Have Fun and Be Careful!
Sincerly,
The Implementors
")