* logfiles for testing purposes.
*/
/* Normal case - no script arguments */
- if (settings.argc == 0)
- return readline(prompt);
+ if (settings.argc == 0) {
+ char *ln = readline(prompt);
+ if (ln == NULL) {
+ fputs(prompt, stdout);
+ }
+ return ln;
+ }
char *buf = malloc(LINESIZE + 1);
for (;;) {
The bear is locked to the wall with a golden chain!
-
+>
You scored 251 out of a possible 430, using 271 turns.
You have reached "Junior Master" status.
A burly troll stands by the bridge and insists you throw him a
treasure before you may cross.
-
+>
You scored 105 out of a possible 430, using 109 turns.
Your score qualifies you as a novice class adventurer.
For crying out loud, the poor thing is already dead!
-
+>
You scored 77 out of a possible 430, using 49 turns.
Your score qualifies you as a novice class adventurer.
OK
-
+>
You scored 207 out of a possible 430, using 416 turns.
You may now consider yourself a "Seasoned Adventurer".
OK
-
+>
You scored 61 out of a possible 430, using 81 turns.
Your score qualifies you as a novice class adventurer.
There are rare spices here!
-
+>
You scored 119 out of a possible 430, using 238 turns.
Your score qualifies you as a novice class adventurer.
The little bird is now dead. Its body disappears.
-
+>
You scored 32 out of a possible 430, using 10 turns.
You are obviously a rank amateur. Better luck next time.
feel something wet land on your head, but upon looking up you can see
no sign of the culprit.
-
+>
You scored 113 out of a possible 430, using 57 turns.
Your score qualifies you as a novice class adventurer.
Around you is a forest. A small stream flows out of the building and
down a gully.
-
+>
Now let's see you do it without suspending in mid-Adventure.
You scored 9031 out of a possible 430, using 0 turns.
Around you is a forest. A small stream flows out of the building and
down a gully.
-
+>
Now let's see you do it without suspending in mid-Adventure.
You scored 10031 out of a possible 430, using 0 turns.
You're in Hall of Mists.
-
+>
You scored 63 out of a possible 430, using 24 turns.
Your score qualifies you as a novice class adventurer.
The blood-specked body of a huge green dead dragon lies to one side.
-
+>
You scored 65 out of a possible 430, using 32 turns.
Your score qualifies you as a novice class adventurer.
There's nothing here it wants to eat (except perhaps you).
-
+>
You scored 59 out of a possible 430, using 25 turns.
Your score qualifies you as a novice class adventurer.
help you out, but I've never really done this before. Do you want me
to try to reincarnate you?
+>
\ No newline at end of file
Black rod
Small bottle
-
+>
You scored 77 out of a possible 430, using 190 turns.
Your score qualifies you as a novice class adventurer.
The passage here is blocked by a recent cave-in.
-
+>
You scored 67 out of a possible 430, using 66 turns.
Your score qualifies you as a novice class adventurer.
OK
-
+>
You scored 59 out of a possible 430, using 93 turns.
Your score qualifies you as a novice class adventurer.
OK
-
+>
You scored 77 out of a possible 430, using 263 turns.
Your score qualifies you as a novice class adventurer.
A formidable ogre bars the northern exit.
-
+>
You scored 63 out of a possible 430, using 56 turns.
Your score qualifies you as a novice class adventurer.
OK
-
+>
You scored 32 out of a possible 430, using 25 turns.
You are obviously a rank amateur. Better luck next time.
Your bottle is already full.
-
+>
You scored 32 out of a possible 430, using 10 turns.
You are obviously a rank amateur. Better luck next time.
You can't be serious!
-
+>
You scored 191 out of a possible 430, using 241 turns.
You may now consider yourself a "Seasoned Adventurer".
>
-
+>
You scored 257 out of a possible 430, using 337 turns.
You have reached "Junior Master" status.
Nothing happens.
-
+>
You scored 311 out of a possible 430, using 291 turns.
You have reached "Junior Master" status.
>
-
+>
You scored 61 out of a possible 430, using 121 turns.
Your score qualifies you as a novice class adventurer.
There is a Persian rug spread out on the floor!
-
+>
You scored 271 out of a possible 430, using 365 turns.
You have reached "Junior Master" status.
OK
-
+>
You scored 207 out of a possible 430, using 413 turns.
You may now consider yourself a "Seasoned Adventurer".
falling into a pit. None of the objects available is immediately
useful in discovering the secret.
-
+>
You scored 54 out of a possible 430, using 27 turns.
Your score qualifies you as a novice class adventurer.
enter without a key, and there are no keys nearby. I would recommend
looking elsewhere for the keys.
-
+>
You scored 30 out of a possible 430, using 10 turns.
You are obviously a rank amateur. Better luck next time.
Once you've found all the other treasures, it is no longer possible to
locate the one you're now missing.
-
+>
You scored 91 out of a possible 430, using 297 turns.
Your score qualifies you as a novice class adventurer.
like that. There is a way to get by, but you don't have the necessary
resources right now.
-
+>
You scored 55 out of a possible 430, using 25 turns.
Your score qualifies you as a novice class adventurer.
This section is quite advanced. Find the cave first.
-
+>
You scored 30 out of a possible 430, using 11 turns.
You are obviously a rank amateur. Better luck next time.
Don't go west.
-
+>
You scored 339 out of a possible 430, using 397 turns.
Your score puts you in Master Adventurer Class C.
Do you want the hint?
+>
\ No newline at end of file
OK
-
+>
You scored 32 out of a possible 430, using 5 turns.
You are obviously a rank amateur. Better luck next time.
Nothing happens.
-
+>
You scored 32 out of a possible 430, using 1 turn.
You are obviously a rank amateur. Better luck next time.
OK
-
+>
You scored 32 out of a possible 430, using 3 turns.
You are obviously a rank amateur. Better luck next time.
You are currently holding the following:
Tasty food
-
+>
You scored 32 out of a possible 430, using 4 turns.
You are obviously a rank amateur. Better luck next time.
There is a massive vending machine here, swung back to reveal a
southward passage.
-
+>
You scored 343 out of a possible 430, using 406 turns.
Your score puts you in Master Adventurer Class C.
Your lamp has run out of power.
-
+>
You scored 368 out of a possible 430, using 423 turns.
Your score puts you in Master Adventurer Class C.
help you out, but I've never really done this before. Do you want me
to try to reincarnate you?
+>
\ No newline at end of file
>
-
+>
You scored 32 out of a possible 430, using 1 turn.
You are obviously a rank amateur. Better luck next time.
You are in a twisting little maze of passages, all different.
-
+>
You scored 343 out of a possible 430, using 409 turns.
Your score puts you in Master Adventurer Class C.
You can make the passages look less alike by dropping things.
-
+>
You scored 71 out of a possible 430, using 113 turns.
Your score qualifies you as a novice class adventurer.
>
-
+>
You scored 179 out of a possible 430, using 224 turns.
You may now consider yourself a "Seasoned Adventurer".
The ogre, who despite his bulk is quite agile, easily dodges your
attack. He seems almost amused by your puny effort.
-
+>
You scored 59 out of a possible 430, using 23 turns.
Your score qualifies you as a novice class adventurer.
Leporine appendage
Platinum pyramid
-
+>
You scored 101 out of a possible 430, using 108 turns.
Your score qualifies you as a novice class adventurer.
You can't be serious!
-
+>
You scored 185 out of a possible 430, using 187 turns.
You may now consider yourself a "Seasoned Adventurer".
A mysterious recorded voice groans into life and announces:
"This exit is closed. Please leave via main office."
-
+>
You scored 365 out of a possible 430, using 422 turns.
Your score puts you in Master Adventurer Class C.
You're at "Y2".
-
+>
You scored 365 out of a possible 430, using 414 turns.
Your score puts you in Master Adventurer Class C.
A crystal bridge spans the fissure.
-
+>
You scored 67 out of a possible 430, using 43 turns.
Your score qualifies you as a novice class adventurer.
Brass lantern
Wicker cage
-
+>
You scored 69 out of a possible 430, using 50 turns.
Your score qualifies you as a novice class adventurer.
Rough stone steps lead up the dome.
-
+>
You scored 123 out of a possible 430, using 295 turns.
You have achieved the rating: "Experienced Adventurer".
It is now pitch dark. If you proceed you will likely fall into a pit.
-
+>
You scored 169 out of a possible 430, using 187 turns.
You have achieved the rating: "Experienced Adventurer".
A brilliant blue star sapphire is here!
-
+>
You scored 81 out of a possible 430, using 237 turns.
Your score qualifies you as a novice class adventurer.
There is a tiny little plant in the pit, murmuring "water, water, ..."
-
+>
You scored 59 out of a possible 430, using 24 turns.
Your score qualifies you as a novice class adventurer.
The top of a 12-foot-tall beanstalk is poking out of the west pit.
-
+>
You scored 63 out of a possible 430, using 50 turns.
Your score qualifies you as a novice class adventurer.
There is a bottle of water here.
-
+>
You scored 47 out of a possible 430, using 18 turns.
Your score qualifies you as a novice class adventurer.
OK
Can't open file /badfilename, try again.
+File name:
You're in front of building.
-
+>
You scored 32 out of a possible 430, using 1 turn.
You are obviously a rank amateur. Better luck next time.
You're in front of building.
-
+>
You scored 32 out of a possible 430, using 1 turn.
You are obviously a rank amateur. Better luck next time.
OK
Can't open file /, try again.
+File name:
You're in front of building.
-
+>
You scored 27 out of a possible 430, using 1 turn.
You are obviously a rank amateur. Better luck next time.
You're in front of building.
-
+>
You scored 27 out of a possible 430, using 2 turns.
You are obviously a rank amateur. Better luck next time.
Brass lantern
Wicker cage
-
+>
You scored 57 out of a possible 430, using 22 turns.
Your score qualifies you as a novice class adventurer.
>
-
+>
You scored 191 out of a possible 430, using 223 turns.
You may now consider yourself a "Seasoned Adventurer".
while first), but it now costs you a few points each time you save the
game. Saved games are now stored in much smaller files than before.
-
+>
You scored 32 out of a possible 430, using 15 turns.
You are obviously a rank amateur. Better luck next time.
OK
-
+>
You scored 391 out of a possible 430, using 345 turns.
Your score puts you in Master Adventurer Class B.
The canyon runs into a mass of boulders -- dead end.
-
+>
You scored 77 out of a possible 430, using 163 turns.
Your score qualifies you as a novice class adventurer.
You're at "Y2".
-
+>
You scored 167 out of a possible 430, using 231 turns.
You have achieved the rating: "Experienced Adventurer".
A burly troll stands by the bridge and insists you throw him a
treasure before you may cross.
-
+>
You scored 75 out of a possible 430, using 140 turns.
Your score qualifies you as a novice class adventurer.
If you mean to use the Persian rug, it does not appear inclined to
cooperate.
-
+>
You scored 265 out of a possible 430, using 358 turns.
You have reached "Junior Master" status.
The urn is now dark.
-
+>
You scored 267 out of a possible 430, using 344 turns.
You have reached "Junior Master" status.
There is nothing here with which to fill the bottle.
-
+>
You scored 267 out of a possible 430, using 340 turns.
You have reached "Junior Master" status.
The vending machine swings back to block the passage.
-
+>
You scored 75 out of a possible 430, using 56 turns.
Your score qualifies you as a novice class adventurer.
What do you want to do with the water?
-
+>
You scored 65 out of a possible 430, using 85 turns.
Your score qualifies you as a novice class adventurer.
The grate is open.
-
+>
You scored 30 out of a possible 430, using 37 turns.
You are obviously a rank amateur. Better luck next time.
Feed what?
-
+>
You scored 103 out of a possible 430, using 88 turns.
Your score qualifies you as a novice class adventurer.
You're in Plover Room.
-
+>
You scored 342 out of a possible 430, using 423 turns.
Your score puts you in Master Adventurer Class C.
You're at end of road.
-
+>
You scored 30 out of a possible 430, using 45 turns.
You are obviously a rank amateur. Better luck next time.