From: Eric S. Raymond Date: Tue, 13 Jun 2017 13:48:32 +0000 (-0400) Subject: Arrange test coverage of reincarnation code. X-Git-Tag: 1.1~356 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=6c1eadcd67c34cbfd2343c5bbf8341264856ccfb;p=open-adventure.git Arrange test coverage of reincarnation code. --- diff --git a/tests/death-jump.log b/tests/death-jump.log index 988d7ea..5a6f321 100644 --- a/tests/death-jump.log +++ b/tests/death-jump.log @@ -1,4 +1,4 @@ -## Jump into a pit and die +## Jump into a pit and die, refuse reincarnation n seed 1495774850 in diff --git a/tests/reincarnate.chk b/tests/reincarnate.chk new file mode 100644 index 0000000..4f5cc60 --- /dev/null +++ b/tests/reincarnate.chk @@ -0,0 +1,150 @@ + +Welcome to Adventure!! Would you like instructions? + +> n + +You are standing at the end of a road before a small brick building. +Around you is a forest. A small stream flows out of the building and +down a gully. + +> seed 1495774850 +Seed set to 1495774850 + +You're in front of building. + +> in + +You are inside a building, a well house for a large spring. + +There are some keys on the ground here. + +There is a shiny brass lamp nearby. + +There is food here. + +There is a bottle of water here. + +> take keys + +OK + +> take lamp + +OK + +> out + +You're in front of building. + +> s + +You are in a valley in the forest beside a stream tumbling along a +rocky bed. + +> s + +At your feet all the water of the stream splashes into a 2-inch slit +in the rock. Downstream the streambed is bare rock. + +> s + +You are in a 20-foot depression floored with bare dirt. Set into the +dirt is a strong steel grate mounted in concrete. A dry streambed +leads into the depression. + +The grate is locked. + +> open grate + +The grate is now unlocked. + +> d + +You are in a small chamber beneath a 3x3 steel grate to the surface. +A low crawl over cobbles leads inward to the west. + +The grate is open. + +> w + +You are crawling over cobbles in a low passage. There is a dim light +at the east end of the passage. + +There is a small wicker cage discarded nearby. + +> w + +It is now pitch dark. If you proceed you will likely fall into a pit. + +> light lamp + +Your lamp is now on. + +You are in a debris room filled with stuff washed in from the surface. +A low wide passage with cobbles becomes plugged with mud and debris +here, but an awkward canyon leads upward and west. In the mud someone +has scrawled, "MAGIC WORD XYZZY". + +A three foot black rod with a rusty star on an end lies nearby. + +> w + +You are in an awkward sloping east/west canyon. + +> w + +You are in a splendid chamber thirty feet high. The walls are frozen +rivers of orange stone. An awkward canyon and a good passage exit +from east and west sides of the chamber. + +A cheerful little bird is sitting here singing. + +> w + +At your feet is a small pit breathing traces of white mist. An east +passage ends here except for a small crack leading on. + +Rough stone steps lead down the pit. + +> down + +You are at one end of a vast hall stretching forward out of sight to +the west. There are openings to either side. Nearby, a wide stone +staircase leads downward. The hall is filled with wisps of white mist +swaying to and fro almost as if alive. A cold wind blows up the +staircase. There is a passage at the top of a dome behind you. + +Rough stone steps lead up the dome. + +> w + +You are on the east bank of a fissure slicing clear across the hall. +The mist is quite thick here, and the fissure is too wide to jump. + +> jump + +You didn't make it. + +Oh dear, you seem to have gotten yourself killed. I might be able to +help you out, but I've never really done this before. Do you want me +to try to reincarnate you? + +> y + +All right. But don't blame me if something goes wr...... + --- POOF!! --- +You are engulfed in a cloud of orange smoke. Coughing and gasping, +you emerge from the smoke and find.... + +You're inside building. + +There is food here. + +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. + +To achieve the next higher rating, you need 74 more points. diff --git a/tests/reincarnate.log b/tests/reincarnate.log new file mode 100644 index 0000000..39be5dd --- /dev/null +++ b/tests/reincarnate.log @@ -0,0 +1,22 @@ +## Jump into a pit and die, then be reincarnated +n +seed 1495774850 +in +take keys +take lamp +out +s +s +s +open grate +d +w +w +light lamp +w +w +w +down +w +jump +y