From 92ddbba2120c614f073ad3ccbf4c5c83597dea12 Mon Sep 17 00:00:00 2001 From: Aaron Traas Date: Tue, 11 Jul 2017 17:35:23 -0400 Subject: [PATCH] LOC_* coverage - at 98.4% --- tests/death-jump.chk | 23 +- tests/death-jump.log | 5 + tests/domefail.chk | 173 +++++++ tests/domefail.log | 27 + tests/eggs_vanish.chk | 12 +- tests/eggs_vanish.log | 5 +- tests/footslip.chk | 782 +++++++++++++++++++++++++++++ tests/footslip.log | 125 +++++ tests/hint_jade.chk | 24 + tests/hint_jade.log | 5 + tests/listenloud.chk | 314 ++++++------ tests/listenloud.log | 2 + tests/parallel1.chk | 231 +++++++++ tests/parallel1.log | 40 ++ tests/smallpit.chk | 279 +++++++++++ tests/smallpit.log | 43 ++ tests/tall.chk | 1031 +++++++++++++++++++++++++++++++++++++++ tests/tall.log | 167 +++++++ tests/threejunction.chk | 343 +++++++++++++ tests/threejunction.log | 53 ++ tests/woodshint.chk | 36 +- tests/woodshint.log | 8 + 22 files changed, 3560 insertions(+), 168 deletions(-) create mode 100644 tests/domefail.chk create mode 100644 tests/domefail.log create mode 100644 tests/footslip.chk create mode 100644 tests/footslip.log create mode 100644 tests/parallel1.chk create mode 100644 tests/parallel1.log create mode 100644 tests/smallpit.chk create mode 100644 tests/smallpit.log create mode 100644 tests/tall.chk create mode 100644 tests/tall.log create mode 100644 tests/threejunction.chk create mode 100644 tests/threejunction.log diff --git a/tests/death-jump.chk b/tests/death-jump.chk index a5ee3af..69bd301 100644 --- a/tests/death-jump.chk +++ b/tests/death-jump.chk @@ -65,6 +65,18 @@ A low crawl over cobbles leads inward to the west. The grate is open. +> u + +You're outside grate. + +The grate is open. + +> d + +You're below the grate. + +The grate is open. + > w You are crawling over cobbles in a low passage. There is a dim light @@ -106,6 +118,15 @@ passage ends here except for a small crack leading on. Rough stone steps lead down the pit. +> crack + +The crack is far too small for you to follow. At its widest it is +barely wide enough to admit your foot.' + +You're at top of small pit. + +Rough stone steps lead down the pit. + > down You are at one end of a vast hall stretching forward out of sight to @@ -133,7 +154,7 @@ to try to reincarnate you? OK -You scored 51 out of a possible 430, using 18 turns. +You scored 51 out of a possible 430, using 21 turns. Your score qualifies you as a novice class adventurer. diff --git a/tests/death-jump.log b/tests/death-jump.log index 5a6f321..3c877f0 100644 --- a/tests/death-jump.log +++ b/tests/death-jump.log @@ -10,12 +10,17 @@ s s open grate d +# go back up and down again because of coverage +u +d w w light lamp w w w +# attempt and fail to traverse the crack because coverage +crack down w jump diff --git a/tests/domefail.chk b/tests/domefail.chk new file mode 100644 index 0000000..e3f301c --- /dev/null +++ b/tests/domefail.chk @@ -0,0 +1,173 @@ + +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 1838473132 +Seed set to 1838473132 + +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 lamp + +OK + +> xyzzy + +>>Foof!<< + +It is now pitch dark. If you proceed you will likely fall into a pit. + +> on + +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. + +> e + +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. + +> take cage + +OK + +> w + +You're in debris room. + +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. + +> take + +OK + +> 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. + +> d + +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. + +> d + +You are in the Hall of the Mountain King, with passages off in all +directions. + +A huge green fierce snake bars the way! + +> free bird + +The little bird attacks the green snake, and in an astounding flurry +drives the snake away. + +> w + +You are in the west side chamber of the Hall of the Mountain King. +A passage continues west and up here. + +There are many coins here! + +> e + +You're in Hall of Mt King. + +A cheerful little bird is sitting here singing. + +> s + +You are in the south side chamber. + +There is precious jewelry here! + +> n + +You're in Hall of Mt King. + +A cheerful little bird is sitting here singing. + +> u + +You're in Hall of Mists. + +Rough stone steps lead up the dome. + +> s + +This is a low room with a crude note on the wall. The note says, +"You won't get it up the steps". + +There is a large sparkling nugget of gold here! + +> take nugget + +OK + +> n + +You're in Hall of Mists. + +> dome + +The dome is unclimbable. + +You're in Hall of Mists. + +> u + +The dome is unclimbable. + +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. + +To achieve the next higher rating, you need 58 more points. diff --git a/tests/domefail.log b/tests/domefail.log new file mode 100644 index 0000000..df46939 --- /dev/null +++ b/tests/domefail.log @@ -0,0 +1,27 @@ +## Take nugget and fail to climb to the dome +n +seed 1838473132 +in +take lamp +xyzzy +on +e +take cage +w +w +w +take +w +d +d +free bird +w +e +s +n +u +s +take nugget +n +dome +u diff --git a/tests/eggs_vanish.chk b/tests/eggs_vanish.chk index 953ce4c..52eb210 100644 --- a/tests/eggs_vanish.chk +++ b/tests/eggs_vanish.chk @@ -424,8 +424,18 @@ OK The nest of golden eggs has vanished! +> s + +You're in Giant Room. + +There is a large nest here, full of golden eggs! + +> e + +The passage here is blocked by a recent cave-in. + -You scored 67 out of a possible 430, using 64 turns. +You scored 67 out of a possible 430, using 66 turns. Your score qualifies you as a novice class adventurer. diff --git a/tests/eggs_vanish.log b/tests/eggs_vanish.log index 48e281c..452335d 100644 --- a/tests/eggs_vanish.log +++ b/tests/eggs_vanish.log @@ -64,4 +64,7 @@ n fee fie foe -foo \ No newline at end of file +foo +# go south, east to arrive at LOC_CAVEIN for coverage +s +e \ No newline at end of file diff --git a/tests/footslip.chk b/tests/footslip.chk new file mode 100644 index 0000000..0be8983 --- /dev/null +++ b/tests/footslip.chk @@ -0,0 +1,782 @@ + +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 1838473132 +Seed set to 1838473132 + +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 lamp + +OK + +> xyzzy + +>>Foof!<< + +It is now pitch dark. If you proceed you will likely fall into a pit. + +> on + +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. + +> take rod + +OK + +> e + +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. + +> take cage + +OK + +> w + +You're in debris room. + +> 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. + +> drop rod + +OK + +> take bird + +OK + +> take rod + +OK + +> 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. + +> d + +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. + +> d + +You are in the Hall of the Mountain King, with passages off in all +directions. + +A huge green fierce snake bars the way! + +> free bird + +The little bird attacks the green snake, and in an astounding flurry +drives the snake away. + +> w + +You are in the west side chamber of the Hall of the Mountain King. +A passage continues west and up here. + +There are many coins here! + +> take coins + +OK + +> e + +You're in Hall of Mt King. + +A cheerful little bird is sitting here singing. + +> s + +You are in the south side chamber. + +There is precious jewelry here! + +> take n + +You're in Hall of Mt King. + +A cheerful little bird is sitting here singing. + +> u + +You're in Hall of Mists. + +Rough stone steps lead up the dome. + +> s + +This is a low room with a crude note on the wall. The note says, +"You won't get it up the steps". + +There is a large sparkling nugget of gold here! + +> n + +You're in Hall of Mists. + +Rough stone steps lead up the dome. + +> d + +You're in Hall of Mt King. + +A cheerful little bird is sitting here singing. + +> n + +You are in a low n/s passage at a hole in the floor. The hole goes +down to an e/w passage. + +There are bars of silver here! + +> n + +You are in a large room, with a passage to the south, a passage to the +west, and a wall of broken rock to the east. There is a large "Y2" on +a rock in the room's center. + +A hollow voice says "PLUGH". + +> plugh + +>>Foof!<< + +You're inside building. + +There are some keys on the ground here. + +There is food here. + +There is a bottle of water here. + +> extin + +Your lamp is now off. + +> plugh + +>>Foof!<< + +It is now pitch dark. If you proceed you will likely fall into a pit. + +> on + +Your lamp is now on. + +You're at "Y2". + +> s + +You're in n/s passage above e/w passage. + +There are bars of silver here! + +> s + +You're in Hall of Mt King. + +A cheerful little bird is sitting here singing. + +> sw + +A little dwarf just walked around a corner, saw you, threw a little +axe at you which missed, cursed, and ran away. + +You are in a secret canyon which here runs e/w. It crosses over a +very tight canyon 15 feet below. If you go down you may not be able +to get back up. + +There is a little axe here. + +> take + +OK + +> w + +You are in a secret canyon which exits to the north and east. + +A huge green fierce dragon bars the way! + +The dragon is sprawled out on a persian rug!! + +> kill drago + +With what? Your bare hands? + +> y + +Congratulations! You have just vanquished a dragon with your bare +hands! (Unbelievable, isn't it?) + +You are in a secret canyon which exits to the north and east. + +There is a persian rug spread out on the floor! + +The blood-specked body of a huge green dead dragon lies to one side. + +> e + +You're in secret e/w canyon above tight canyon. + +> e + +You are in the Hall of the Mountain King, with passages off in all +directions. + +A cheerful little bird is sitting here singing. + +> u + +There is a threatening little dwarf in the room with you! + +One sharp nasty knife is thrown at you! + +It misses! + +You're in Hall of Mists. + +Rough stone steps lead up the dome. + +> d + +There is a threatening little dwarf in the room with you! + +You're in Hall of Mt King. + +A cheerful little bird is sitting here singing. + +> n + +There is a threatening little dwarf in the room with you! + +You're in n/s passage above e/w passage. + +There are bars of silver here! + +> n + +There is a threatening little dwarf in the room with you! + +You're at "Y2". + +A hollow voice says "PLUGH". + +> off + +Your lamp is now off. + +It is now pitch dark. If you proceed you will likely fall into a pit. + +> plugh + +>>Foof!<< + +You're inside building. + +There are some keys on the ground here. + +There is food here. + +There is a bottle of water here. + +> out + +You're in front of building. + +> s + +You are in a valley in the forest beside a stream tumbling along a +rocky bed. + +> w + +You are wandering aimlessly through the forest. + +> n + +You are wandering aimlessly through the forest. + +Your keen eye spots a severed leporine appendage lying on the ground. + +> s + +You are wandering aimlessly through the forest. + +> s + +You're in valley. + +> n + +You're in front of building. + +> in + +You're inside building. + +There are some keys on the ground here. + +There is food here. + +There is a bottle of water here. + +> take water + +OK + +> plugh + +>>Foof!<< + +It is now pitch dark. If you proceed you will likely fall into a pit. + +> on + +Your lamp is now on. + +You're at "Y2". + +> plove + +>>Foof!<< + +You're in a small chamber lit by an eerie green light. An extremely +narrow tunnel exits to the west. A dark corridor leads ne. + +There is an emerald here the size of a plover's egg! + +> s + +There is no way to go that direction. + +You're in Plover Room. + +There is an emerald here the size of a plover's egg! + +> plove + +>>Foof!<< + +You're at "Y2". + +> s + +You're in n/s passage above e/w passage. + +There are bars of silver here! + +> s + +You're in Hall of Mt King. + +A cheerful little bird is sitting here singing. + +> u + +You're in Hall of Mists. + +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. + +> wave rod + +A crystal bridge now spans the fissure. + +> west + +You are on the west side of the fissure in the Hall of Mists. + +There are diamonds here! + +A crystal bridge spans the fissure. + +> w + +You are at the west end of the Hall of Mists. A low wide crawl +continues west and another goes north. To the south is a little +passage 6 feet off the floor. + +> w + +You are at the east end of a very long hall apparently without side +chambers. To the east a low wide crawl slants up. To the north a +round two foot hole slants down. + +> w + +You are at the west end of a very long featureless hall. The hall +joins up with a narrow north/south passage. + +> s + +You are in a maze of twisty little passages, all different. + +> s + +You are in a maze of twisting little passages, all different. + +> e + +You are in a little maze of twisting passages, all different. + +> s + +Dead end + +There is a massive and somewhat battered vending machine here. The +instructions on it read: "Drop coins here to receive fresh batteries." + +> kill machi + +As you strike the vending machine, it pivots backward along with a +section of wall, revealing a dark passage leading south. + +> s + +You are in a long, rough-hewn, north/south corridor. + +> s + +You are in a large chamber with passages to the west and north. + +A formidable ogre bars the northern exit. + +> n + +The ogre snarls and shoves you back. + +You are in a large chamber with passages to the west and north. + +A formidable ogre bars the northern exit. + +> s + +There is no way to go that direction. + +You are in a large chamber with passages to the west and north. + +A formidable ogre bars the northern exit. + +> w + +You are in a long, rough-hewn, north/south corridor. + +> n + +Dead end + +There is a massive vending machine here, swung back to reveal a +southward passage. + +> n + +You are in a little maze of twisting passages, all different. + +> n + +You are in a little maze of twisty passages, all different. + +> nw + +You are in a maze of twisty little passages, all different. + +> d + +You're at west end of long hall. + +> e + +You're at east end of long hall. + +> e + +You're at west end of Hall of Mists. + +> e + +You're on west bank of fissure. + +There are diamonds here! + +A crystal bridge spans the fissure. + +> e + +You're on east bank of fissure. + +A crystal bridge spans the fissure. + +> e + +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. + +> n + +You're in Hall of Mt King. + +A cheerful little bird is sitting here singing. + +> n + +You're in n/s passage above e/w passage. + +There are bars of silver here! + +> n + +You are in a large room, with a passage to the south, a passage to the +west, and a wall of broken rock to the east. There is a large "Y2" on +a rock in the room's center. + +A hollow voice says "PLUGH". + +> off + +Your lamp is now off. + +It is now pitch dark. If you proceed you will likely fall into a pit. + +> plugh + +>>Foof!<< + +You're inside building. + +There are some keys on the ground here. + +There is food here. + +> plugh + +>>Foof!<< + +It is now pitch dark. If you proceed you will likely fall into a pit. + +> on + +Your lamp is now on. + +You're at "Y2". + +> s + +You are in a low n/s passage at a hole in the floor. The hole goes +down to an e/w passage. + +There are bars of silver here! + +> s + +You're in Hall of Mt King. + +A cheerful little bird is sitting here singing. + +> u + +You're in Hall of Mists. + +Rough stone steps lead up the dome. + +> n + +Out from the shadows behind you pounces a bearded pirate! "Har, har," +he chortles, "I'll just take all this booty and hide it away with me +chest deep in the maze!" He snatches your treasure and vanishes into +the gloom. + +You are in the Hall of the Mountain King, with passages off in all +directions. + +A cheerful little bird is sitting here singing. + +> n + +You're in n/s passage above e/w passage. + +There are bars of silver here! + +> d + +You are in a dirty broken passage. To the east is a crawl. To the +west is a large passage. Above you is a hole to another passage. + +> bedqu + +There is a threatening little dwarf in the room with you! + +You are in Bedquilt, a long east/west passage with holes everywhere. +To explore at random select north, south, up, or down. + +> throw axe + +You killed a little dwarf. The body vanishes in a cloud of greasy +black smoke. + +You're in Bedquilt. + +There is a little axe here. + +> slab + +You are in a large low circular chamber whose floor is an immense slab +fallen from the ceiling (Slab Room). East and west there once were +large passages, but they are now filled with boulders. Low small +passages go north and south, and the south one quickly bends west +around the boulders. + +> s + +You are at the west end of the Twopit Room. There is a large hole in +the wall above the pit at this end of the room. + +> d + +You are at the bottom of the western pit in the Twopit Room. There is +a large hole in the wall about 25 feet above you. + +There is a tiny little plant in the pit, murmuring "water, water, ..." + +> water plant + +The plant spurts into furious growth for a few seconds. + +You're in west pit. + +There is a 12-foot-tall beanstalk stretching up out of the pit, +bellowing "WATER!! WATER!!" + +> u + +You're at west end of Twopit Room. + +The top of a 12-foot-tall beanstalk is poking out of the west pit. + +> w + +You're in Slab Room. + +> u + +You are in a secret n/s canyon above a large room. + +> reser + +You are at the edge of a large underground reservoir. An opaque cloud +of white mist fills the room and rises rapidly upward. The lake is +fed by a stream, which tumbles out of a hole in the wall about 10 feet +overhead and splashes noisily into the water somewhere within the +mist. There is a passage going back toward the south. + +> H'CFL + +The waters have parted to form a narrow path across the reservoir. + +> n + +You are walking across the bottom of the reservoir. Walls of water +rear up on either side. The roar of the water cascading past is +nearly deafening, and the mist is so thick you can barely see. + +> n + +You are at the northern edge of the reservoir. A northwest passage +leads sharply up from here. + +The waters have parted to form a narrow path across the reservoir. + +> w + +There is no way to go that direction. + +You're north of reservoir. + +The waters have parted to form a narrow path across the reservoir. + +> u + +You are scrambling along a treacherously steep, rocky passage. + +> u + +You are on a very steep incline, which widens at it goes upward. + +> u + +You are at the base of a nearly vertical cliff. There are some +slim footholds which would enable you to climb up, but it looks +extremely dangerous. Here at the base of the cliff lie the remains +of several earlier adventurers who apparently failed to make it. + +> u + +You are climbing along a nearly vertical cliff. + +> u + +Just as you reach the top, your foot slips on a loose rock and you +tumble several hundred feet to join the other unlucky adventurers. + +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? + diff --git a/tests/footslip.log b/tests/footslip.log new file mode 100644 index 0000000..d29587b --- /dev/null +++ b/tests/footslip.log @@ -0,0 +1,125 @@ +## Coverage of LOC_FOOTSLIP +n +seed 1838473132 +in +take lamp +xyzzy +on +take rod +e +take cage +w +w +w +drop rod +take bird +take rod +w +d +d +free bird +w +take coins +e +s +take n +u +s +n +d +n +n +plugh +extin +plugh +on +s +s +sw +take +w +kill drago +y +e +e +u +d +n +n +off +plugh +out +s +w +n +s +s +n +in +take water +plugh +on +plove +s +plove +s +s +u +w +wave rod +west +w +w +w +s +s +e +s +kill machi +s +s +n +s +w +n +n +n +nw +d +e +e +e +e +e +n +n +n +off +plugh +plugh +on +s +s +u +n +n +d +bedqu +throw axe +slab +s +d +water plant +u +w +u +reser +H'CFL +n +n +w +u +u +u +u +u \ No newline at end of file diff --git a/tests/hint_jade.chk b/tests/hint_jade.chk index 5f63b5d..d03eab1 100644 --- a/tests/hint_jade.chk +++ b/tests/hint_jade.chk @@ -1419,6 +1419,30 @@ The path forks here. The left fork leads northeast. A dull rumbling seems to get louder in that direction. The right fork leads southeast down a gentle slope. The main corridor enters from the west. +> d + +You are being followed by a very large, tame bear. + +You are walking along a gently sloping north/south passage lined with oddly shaped limestone formations. + +> fork + +You are being followed by a very large, tame bear. + +You're at fork in path. + +> d + +You are being followed by a very large, tame bear. + +You're in limestone passage. + +> fork + +You are being followed by a very large, tame bear. + +You're at fork in path. + > ne You are being followed by a very large, tame bear. diff --git a/tests/hint_jade.log b/tests/hint_jade.log index 1a188e5..6e3c855 100644 --- a/tests/hint_jade.log +++ b/tests/hint_jade.log @@ -230,6 +230,11 @@ feed bear unloc take bear fork +# next 4 lines are for coverage of LOC_LIMESTONE +d +fork +d +fork ne e fork diff --git a/tests/listenloud.chk b/tests/listenloud.chk index abe3b6e..4635e09 100644 --- a/tests/listenloud.chk +++ b/tests/listenloud.chk @@ -382,139 +382,88 @@ You're in Plover Room. There is an emerald here the size of a plover's egg! +> dark + +You're in dark-room. + +A massive stone tablet imbedded in the wall reads: +"Congratulations on bringing light into the dark-room!" + +> s + +You're in Plover Room. + +There is an emerald here the size of a plover's egg! + > plover >>Foof!<< -There is a threatening little dwarf in the room with you! - You're at "Y2". -A hollow voice says "PLUGH". - > s -There is a threatening little dwarf in the room with you! - You're in n/s passage above e/w passage. > d -There is a threatening little dwarf in the room with you! - You are in a dirty broken passage. To the east is a crawl. To the west is a large passage. Above you is a hole to another passage. > u -A little dwarf with a big knife blocks your way. - -There is a threatening little dwarf in the room with you! - -One sharp nasty knife is thrown at you! - -It misses! - -You're in dirty passage. +You're in n/s passage above e/w passage. > u -There are 2 threatening little dwarves in the room with you. +There is no way to go that direction. You're in n/s passage above e/w passage. > throw axe -You attack a little dwarf, but he dodges out of the way. - -There are 2 threatening little dwarves in the room with you. - -2 of them throw knives at you! - -None of them hits you! - -You're in n/s passage above e/w passage. - -There is a little axe here. +There is nothing here to attack. > take axe -OK +You are already carrying it! > throw axe -You attack a little dwarf, but he dodges out of the way. - -There are 2 threatening little dwarves in the room with you. - -2 of them throw knives at you! - -None of them hits you! - -You're in n/s passage above e/w passage. - -There is a little axe here. +There is nothing here to attack. > take axe -OK +You are already carrying it! > throw axe -You attack a little dwarf, but he dodges out of the way. - -There are 2 threatening little dwarves in the room with you. - -2 of them throw knives at you! - -None of them hits you! - -You are in a low n/s passage at a hole in the floor. The hole goes -down to an e/w passage. - -There is a little axe here. +There is nothing here to attack. > take axe -OK +You are already carrying it! > throw axe -You killed a little dwarf. The body vanishes in a cloud of greasy -black smoke. - -There is a threatening little dwarf in the room with you! - -One sharp nasty knife is thrown at you! - -It misses! - -You're in n/s passage above e/w passage. - -There is a little axe here. +There is nothing here to attack. > take axe -OK +You are already carrying it! > s -There is a threatening little dwarf in the room with you! - You're in Hall of Mt King. > e -There is a threatening little dwarf in the room with you! - You're in Hall of Mists. Rough stone steps lead up the dome. > w -There is a threatening little dwarf in the room with you! - You're on east bank of fissure. A three foot black rod with a rusty star on an end lies nearby. @@ -527,8 +476,6 @@ OK > w -There is a threatening little dwarf in the room with you! - You are on the west side of the fissure in the Hall of Mists. There are diamonds here! @@ -537,8 +484,6 @@ A crystal bridge spans the fissure. > w -There is a threatening little dwarf in the room with you! - You are at the west end of the Hall of Mists. A low wide crawl continues west and another goes north. To the south is a little passage 6 feet off the floor. @@ -547,6 +492,10 @@ passage 6 feet off the floor. There is a threatening little dwarf in the room with you! +One sharp nasty knife is thrown at you! + +It misses! + You are at the east end of a very long hall apparently without side chambers. To the east a low wide crawl slants up. To the north a round two foot hole slants down. @@ -688,12 +637,16 @@ A crystal bridge spans the fissure. > e +There is a threatening little dwarf in the room with you! + You're in Hall of Mists. Rough stone steps lead up the dome. > s +There is a threatening little dwarf in the room with you! + This is a low room with a crude note on the wall. The note says, "You won't get it up the steps". @@ -705,173 +658,206 @@ You can't carry anything more. You'll have to drop something first. > n -You're in Hall of Mists. - -Rough stone steps lead up the dome. - -> y2 - -You are in a jumble of rock, with cracks everywhere. - -> d +A little dwarf with a big knife blocks your way. -You're at "Y2". +There is a threatening little dwarf in the room with you! -> plugh +One sharp nasty knife is thrown at you! ->>Foof!<< +It misses! -You're inside building. +You're in nugget-of-gold room. -There is a persian rug spread out on the floor! +There is a large sparkling nugget of gold here! -A precious jade necklace has been dropped here! +> y2 -There is precious jewelry here! +I don't know how to apply that word here. -There are bars of silver here! +There is a threatening little dwarf in the room with you! -There are some keys on the ground here. +One sharp nasty knife is thrown at you! -There is food here. +It misses! -> drop diamonds +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? -OK +> d -> drop pyramid +Please answer the question. -OK +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? -> drop ruby +> plugh -OK +Please answer the question. -> plugh +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? ->>Foof!<< +> drop diamonds -You're at "Y2". +Please answer the question. -A hollow voice says "PLUGH". +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? -> plugh +> drop pyramid ->>Foof!<< +Please answer the question. -You're inside building. +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? -There is an enormous ruby here! +> drop ruby -There is a platinum pyramid here, 8 inches on a side! +Please answer the question. -There are diamonds here! +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? -There is a persian rug spread out on the floor! +> plugh -A precious jade necklace has been dropped here! +Please answer the question. -There is precious jewelry here! +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? -There are bars of silver here! +> plugh -There are some keys on the ground here. +Please answer the question. -There is food here. +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? > drop coins -I see no coins here. +Please answer the question. + +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? > plugh ->>Foof!<< +Please answer the question. -You are in a large room, with a passage to the south, a passage to the -west, and a wall of broken rock to the east. There is a large "Y2" on -a rock in the room's center. +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? > s -You're in n/s passage above e/w passage. +Please answer the question. + +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? > d -You're in dirty passage. +Please answer the question. + +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? > bedquilt -You are in Bedquilt, a long east/west passage with holes everywhere. -To explore at random select north, south, up, or down. +Please answer the question. + +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? > slab -You are in a large low circular chamber whose floor is an immense slab -fallen from the ceiling (Slab Room). East and west there once were -large passages, but they are now filled with boulders. Low small -passages go north and south, and the south one quickly bends west -around the boulders. +Please answer the question. + +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? > s -You are at the west end of the Twopit Room. There is a large hole in -the wall above the pit at this end of the room. +Please answer the question. + +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? > d -You are at the bottom of the western pit in the Twopit Room. There is -a large hole in the wall about 25 feet above you. +Please answer the question. -There is a tiny little plant in the pit, murmuring "water, water, ..." +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? > water plant -The plant spurts into furious growth for a few seconds. - -You're in west pit. +Please answer the question. -There is a 12-foot-tall beanstalk stretching up out of the pit, -bellowing "WATER!! WATER!!" +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? > u -You're at west end of Twopit Room. +Please answer the question. -The top of a 12-foot-tall beanstalk is poking out of the west pit. +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? > w -You're in Slab Room. +Please answer the question. + +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? > u -You are in a secret n/s canyon above a large room. +Please answer the question. + +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? > reservoir -You are at the edge of a large underground reservoir. An opaque cloud -of white mist fills the room and rises rapidly upward. The lake is -fed by a stream, which tumbles out of a hole in the wall about 10 feet -overhead and splashes noisily into the water somewhere within the -mist. There is a passage going back toward the south. +Please answer the question. -> Q'IBJ +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? -The waters have parted to form a narrow path across the reservoir. - -> n +> Q'IBJ -You are walking across the bottom of the reservoir. Walls of water -rear up on either side. The roar of the water cascading past is -nearly deafening, and the mist is so thick you can barely see. +Please answer the question. -> listen +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? -The roaring is so loud that it drowns out all other sound. +> n +OK -You scored 161 out of a possible 430, using 135 turns. +You scored 117 out of a possible 430, using 114 turns. -You have achieved the rating: "Experienced Adventurer". +Your score qualifies you as a novice class adventurer. -To achieve the next higher rating, you need 10 more points. +To achieve the next higher rating, you need 4 more points. diff --git a/tests/listenloud.log b/tests/listenloud.log index d8ee507..3e820e4 100644 --- a/tests/listenloud.log +++ b/tests/listenloud.log @@ -67,6 +67,8 @@ ne take axe take pyramid s +dark +s plover s d diff --git a/tests/parallel1.chk b/tests/parallel1.chk new file mode 100644 index 0000000..3a68235 --- /dev/null +++ b/tests/parallel1.chk @@ -0,0 +1,231 @@ + +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 1071883378 +Seed set to 1071883378 + +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 lamp + +OK + +> say xyzzy + +>>Foof!<< + +It is now pitch dark. If you proceed you will likely fall into a pit. + +> take rod + +OK + +> e + +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. + +> take cage + +OK + +> w + +It is now pitch dark. If you proceed you will likely fall into a pit. + +> on + +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". + +> 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. + +> drop rod + +OK + +> take bird + +OK + +> take rod + +OK + +> 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. + +> free bird + +OK + +> wave rod + +The bird flies about agitatedly for a moment, then disappears through +the crack. It reappears shortly, carrying in its beak a jade +necklace, which it drops at your feet. + +> drop rod + +OK + +> take bird + +OK + +> take jade + +OK + +> e + +You're in bird chamber. + +> e + +You are in an awkward sloping east/west canyon. + +> e + +You're in debris room. + +> off + +Your lamp is now off. + +It is now pitch dark. If you proceed you will likely fall into a pit. + +> xyzzy + +>>Foof!<< + +You're inside building. + +There are some keys on the ground here. + +There is food here. + +There is a bottle of water here. + +> drop jade + +OK + +> xyzzy + +>>Foof!<< + +It is now pitch dark. If you proceed you will likely fall into a pit. + +> on + +Your lamp is now on. + +You're in debris room. + +> w + +You are in an awkward sloping east/west canyon. + +> w + +You're in bird chamber. + +> w + +You're at top of small pit. + +A three foot black rod with a rusty star on an end lies nearby. + +Rough stone steps lead down the pit. + +> take rod + +OK + +> d + +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. + +> wave rod + +The bird flies agitatedly about the cage. + +A crystal bridge now spans the fissure. + +> drop rod + +OK + +> w + +You are on the west side of the fissure in the Hall of Mists. + +There are diamonds here! + +A crystal bridge spans the fissure. + +> n + +You have crawled through a very low wide passage parallel to and north +of the Hall of Mists. + +You are at the west end of the Hall of Mists. A low wide crawl +continues west and another goes north. To the south is a little +passage 6 feet off the floor. + + +You scored 75 out of a possible 430, using 37 turns. + +Your score qualifies you as a novice class adventurer. + +To achieve the next higher rating, you need 46 more points. diff --git a/tests/parallel1.log b/tests/parallel1.log new file mode 100644 index 0000000..0a84768 --- /dev/null +++ b/tests/parallel1.log @@ -0,0 +1,40 @@ +## display text for LOC_PARALLEL1 +n +seed 1071883378 +in +take lamp +say xyzzy +take rod +e +take cage +w +on +w +w +drop rod +take bird +take rod +w +free bird +wave rod +drop rod +take bird +take jade +e +e +e +off +xyzzy +drop jade +xyzzy +on +w +w +w +take rod +d +w +wave rod +drop rod +w +n diff --git a/tests/smallpit.chk b/tests/smallpit.chk new file mode 100644 index 0000000..b880716 --- /dev/null +++ b/tests/smallpit.chk @@ -0,0 +1,279 @@ + +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 1838473132 +Seed set to 1838473132 + +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 lamp + +OK + +> xyzzy + +>>Foof!<< + +It is now pitch dark. If you proceed you will likely fall into a pit. + +> on + +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. + +> e + +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. + +> take cage + +OK + +> w + +You're in debris room. + +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. + +> take + +OK + +> 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. + +> d + +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. + +> d + +You are in the Hall of the Mountain King, with passages off in all +directions. + +A huge green fierce snake bars the way! + +> free bird + +The little bird attacks the green snake, and in an astounding flurry +drives the snake away. + +> w + +You are in the west side chamber of the Hall of the Mountain King. +A passage continues west and up here. + +There are many coins here! + +> e + +You're in Hall of Mt King. + +A cheerful little bird is sitting here singing. + +> s + +You are in the south side chamber. + +There is precious jewelry here! + +> n + +You're in Hall of Mt King. + +A cheerful little bird is sitting here singing. + +> u + +You're in Hall of Mists. + +Rough stone steps lead up the dome. + +> s + +This is a low room with a crude note on the wall. The note says, +"You won't get it up the steps". + +There is a large sparkling nugget of gold here! + +> n + +You're in Hall of Mists. + +Rough stone steps lead up the dome. + +> d + +You're in Hall of Mt King. + +A cheerful little bird is sitting here singing. + +> n + +You are in a low n/s passage at a hole in the floor. The hole goes +down to an e/w passage. + +There are bars of silver here! + +> n + +You are in a large room, with a passage to the south, a passage to the +west, and a wall of broken rock to the east. There is a large "Y2" on +a rock in the room's center. + +A hollow voice says "PLUGH". + +> plugh + +>>Foof!<< + +You're inside building. + +There are some keys on the ground here. + +There is food here. + +There is a bottle of water here. + +> extin + +Your lamp is now off. + +> plugh + +>>Foof!<< + +It is now pitch dark. If you proceed you will likely fall into a pit. + +> on + +Your lamp is now on. + +You're at "Y2". + +> plugh + +>>Foof!<< + +You're inside building. + +There are some keys on the ground here. + +There is food here. + +There is a bottle of water here. + +> take water + +OK + +> plugh + +>>Foof!<< + +You're at "Y2". + +> plugh + +>>Foof!<< + +You're inside building. + +There are some keys on the ground here. + +There is food here. + +> plugh + +>>Foof!<< + +You're at "Y2". + +> s + +You're in n/s passage above e/w passage. + +There are bars of silver here! + +> d + +You are in a dirty broken passage. To the east is a crawl. To the +west is a large passage. Above you is a hole to another passage. + +> crawl + +You are on the brink of a small clean climbable pit. A crawl leads +west. + +> pit + +You are in the bottom of a small pit with a little stream, which +enters and exits through tiny slits. + +> listen + +The stream is gurgling placidly. + +> out + +You're at brink of small pit. + +> pit + +You're at bottom of pit with stream. + + +You scored 65 out of a possible 430, using 40 turns. + +Your score qualifies you as a novice class adventurer. + +To achieve the next higher rating, you need 56 more points. diff --git a/tests/smallpit.log b/tests/smallpit.log new file mode 100644 index 0000000..b6e5372 --- /dev/null +++ b/tests/smallpit.log @@ -0,0 +1,43 @@ +## Coverage of LOC_SMALLPIT and LOC_SMALLPITBRINK +n +seed 1838473132 +in +take lamp +xyzzy +on +e +take cage +w +w +w +take +w +d +d +free bird +w +e +s +n +u +s +n +d +n +n +plugh +extin +plugh +on +plugh +take water +plugh +plugh +plugh +s +d +crawl +pit +listen +out +pit \ No newline at end of file diff --git a/tests/tall.chk b/tests/tall.chk new file mode 100644 index 0000000..8beaa77 --- /dev/null +++ b/tests/tall.chk @@ -0,0 +1,1031 @@ + +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 1838473132 +Seed set to 1838473132 + +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 lamp + +OK + +> xyzzy + +>>Foof!<< + +It is now pitch dark. If you proceed you will likely fall into a pit. + +> on + +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. + +> take rod + +OK + +> e + +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. + +> take cage + +OK + +> w + +You're in debris room. + +> 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. + +> drop rod + +OK + +> take bird + +OK + +> take rod + +OK + +> 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. + +> d + +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. + +> d + +You are in the Hall of the Mountain King, with passages off in all +directions. + +A huge green fierce snake bars the way! + +> free bird + +The little bird attacks the green snake, and in an astounding flurry +drives the snake away. + +> w + +You are in the west side chamber of the Hall of the Mountain King. +A passage continues west and up here. + +There are many coins here! + +> take coins + +OK + +> e + +You're in Hall of Mt King. + +A cheerful little bird is sitting here singing. + +> s + +You are in the south side chamber. + +There is precious jewelry here! + +> take n + +You're in Hall of Mt King. + +A cheerful little bird is sitting here singing. + +> u + +You're in Hall of Mists. + +Rough stone steps lead up the dome. + +> s + +This is a low room with a crude note on the wall. The note says, +"You won't get it up the steps". + +There is a large sparkling nugget of gold here! + +> n + +You're in Hall of Mists. + +Rough stone steps lead up the dome. + +> d + +You're in Hall of Mt King. + +A cheerful little bird is sitting here singing. + +> n + +You are in a low n/s passage at a hole in the floor. The hole goes +down to an e/w passage. + +There are bars of silver here! + +> n + +You are in a large room, with a passage to the south, a passage to the +west, and a wall of broken rock to the east. There is a large "Y2" on +a rock in the room's center. + +A hollow voice says "PLUGH". + +> plugh + +>>Foof!<< + +You're inside building. + +There are some keys on the ground here. + +There is food here. + +There is a bottle of water here. + +> extin + +Your lamp is now off. + +> plugh + +>>Foof!<< + +It is now pitch dark. If you proceed you will likely fall into a pit. + +> on + +Your lamp is now on. + +You're at "Y2". + +> s + +You're in n/s passage above e/w passage. + +There are bars of silver here! + +> s + +You're in Hall of Mt King. + +A cheerful little bird is sitting here singing. + +> sw + +A little dwarf just walked around a corner, saw you, threw a little +axe at you which missed, cursed, and ran away. + +You are in a secret canyon which here runs e/w. It crosses over a +very tight canyon 15 feet below. If you go down you may not be able +to get back up. + +There is a little axe here. + +> take + +OK + +> w + +You are in a secret canyon which exits to the north and east. + +A huge green fierce dragon bars the way! + +The dragon is sprawled out on a persian rug!! + +> kill drago + +With what? Your bare hands? + +> y + +Congratulations! You have just vanquished a dragon with your bare +hands! (Unbelievable, isn't it?) + +You are in a secret canyon which exits to the north and east. + +There is a persian rug spread out on the floor! + +The blood-specked body of a huge green dead dragon lies to one side. + +> e + +You're in secret e/w canyon above tight canyon. + +> e + +You are in the Hall of the Mountain King, with passages off in all +directions. + +A cheerful little bird is sitting here singing. + +> u + +There is a threatening little dwarf in the room with you! + +One sharp nasty knife is thrown at you! + +It misses! + +You're in Hall of Mists. + +Rough stone steps lead up the dome. + +> d + +There is a threatening little dwarf in the room with you! + +You're in Hall of Mt King. + +A cheerful little bird is sitting here singing. + +> n + +There is a threatening little dwarf in the room with you! + +You're in n/s passage above e/w passage. + +There are bars of silver here! + +> n + +There is a threatening little dwarf in the room with you! + +You're at "Y2". + +A hollow voice says "PLUGH". + +> off + +Your lamp is now off. + +It is now pitch dark. If you proceed you will likely fall into a pit. + +> plugh + +>>Foof!<< + +You're inside building. + +There are some keys on the ground here. + +There is food here. + +There is a bottle of water here. + +> out + +You're in front of building. + +> s + +You are in a valley in the forest beside a stream tumbling along a +rocky bed. + +> w + +You are wandering aimlessly through the forest. + +> n + +You are wandering aimlessly through the forest. + +Your keen eye spots a severed leporine appendage lying on the ground. + +> s + +You are wandering aimlessly through the forest. + +> s + +You're in valley. + +> n + +You're in front of building. + +> in + +You're inside building. + +There are some keys on the ground here. + +There is food here. + +There is a bottle of water here. + +> take water + +OK + +> plugh + +>>Foof!<< + +It is now pitch dark. If you proceed you will likely fall into a pit. + +> on + +Your lamp is now on. + +You're at "Y2". + +> plove + +>>Foof!<< + +You're in a small chamber lit by an eerie green light. An extremely +narrow tunnel exits to the west. A dark corridor leads ne. + +There is an emerald here the size of a plover's egg! + +> s + +There is no way to go that direction. + +You're in Plover Room. + +There is an emerald here the size of a plover's egg! + +> plove + +>>Foof!<< + +You're at "Y2". + +> s + +You're in n/s passage above e/w passage. + +There are bars of silver here! + +> s + +You're in Hall of Mt King. + +A cheerful little bird is sitting here singing. + +> u + +You're in Hall of Mists. + +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. + +> wave rod + +A crystal bridge now spans the fissure. + +> west + +You are on the west side of the fissure in the Hall of Mists. + +There are diamonds here! + +A crystal bridge spans the fissure. + +> w + +You are at the west end of the Hall of Mists. A low wide crawl +continues west and another goes north. To the south is a little +passage 6 feet off the floor. + +> w + +You are at the east end of a very long hall apparently without side +chambers. To the east a low wide crawl slants up. To the north a +round two foot hole slants down. + +> w + +You are at the west end of a very long featureless hall. The hall +joins up with a narrow north/south passage. + +> s + +You are in a maze of twisty little passages, all different. + +> s + +You are in a maze of twisting little passages, all different. + +> e + +You are in a little maze of twisting passages, all different. + +> s + +Dead end + +There is a massive and somewhat battered vending machine here. The +instructions on it read: "Drop coins here to receive fresh batteries." + +> kill machi + +As you strike the vending machine, it pivots backward along with a +section of wall, revealing a dark passage leading south. + +> s + +You are in a long, rough-hewn, north/south corridor. + +> s + +You are in a large chamber with passages to the west and north. + +A formidable ogre bars the northern exit. + +> n + +The ogre snarls and shoves you back. + +You are in a large chamber with passages to the west and north. + +A formidable ogre bars the northern exit. + +> s + +There is no way to go that direction. + +You are in a large chamber with passages to the west and north. + +A formidable ogre bars the northern exit. + +> w + +You are in a long, rough-hewn, north/south corridor. + +> n + +Dead end + +There is a massive vending machine here, swung back to reveal a +southward passage. + +> n + +You are in a little maze of twisting passages, all different. + +> n + +You are in a little maze of twisty passages, all different. + +> nw + +You are in a maze of twisty little passages, all different. + +> d + +You're at west end of long hall. + +> e + +You're at east end of long hall. + +> e + +You're at west end of Hall of Mists. + +> e + +You're on west bank of fissure. + +There are diamonds here! + +A crystal bridge spans the fissure. + +> e + +You're on east bank of fissure. + +A crystal bridge spans the fissure. + +> e + +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. + +> n + +You're in Hall of Mt King. + +A cheerful little bird is sitting here singing. + +> n + +You're in n/s passage above e/w passage. + +There are bars of silver here! + +> n + +You are in a large room, with a passage to the south, a passage to the +west, and a wall of broken rock to the east. There is a large "Y2" on +a rock in the room's center. + +A hollow voice says "PLUGH". + +> off + +Your lamp is now off. + +It is now pitch dark. If you proceed you will likely fall into a pit. + +> plugh + +>>Foof!<< + +You're inside building. + +There are some keys on the ground here. + +There is food here. + +> plugh + +>>Foof!<< + +It is now pitch dark. If you proceed you will likely fall into a pit. + +> on + +Your lamp is now on. + +You're at "Y2". + +> s + +You are in a low n/s passage at a hole in the floor. The hole goes +down to an e/w passage. + +There are bars of silver here! + +> s + +You're in Hall of Mt King. + +A cheerful little bird is sitting here singing. + +> u + +You're in Hall of Mists. + +Rough stone steps lead up the dome. + +> n + +Out from the shadows behind you pounces a bearded pirate! "Har, har," +he chortles, "I'll just take all this booty and hide it away with me +chest deep in the maze!" He snatches your treasure and vanishes into +the gloom. + +You are in the Hall of the Mountain King, with passages off in all +directions. + +A cheerful little bird is sitting here singing. + +> n + +You're in n/s passage above e/w passage. + +There are bars of silver here! + +> d + +You are in a dirty broken passage. To the east is a crawl. To the +west is a large passage. Above you is a hole to another passage. + +> bedqu + +There is a threatening little dwarf in the room with you! + +You are in Bedquilt, a long east/west passage with holes everywhere. +To explore at random select north, south, up, or down. + +> throw axe + +You killed a little dwarf. The body vanishes in a cloud of greasy +black smoke. + +You're in Bedquilt. + +There is a little axe here. + +> slab + +You are in a large low circular chamber whose floor is an immense slab +fallen from the ceiling (Slab Room). East and west there once were +large passages, but they are now filled with boulders. Low small +passages go north and south, and the south one quickly bends west +around the boulders. + +> s + +You are at the west end of the Twopit Room. There is a large hole in +the wall above the pit at this end of the room. + +> d + +You are at the bottom of the western pit in the Twopit Room. There is +a large hole in the wall about 25 feet above you. + +There is a tiny little plant in the pit, murmuring "water, water, ..." + +> water plant + +The plant spurts into furious growth for a few seconds. + +You're in west pit. + +There is a 12-foot-tall beanstalk stretching up out of the pit, +bellowing "WATER!! WATER!!" + +> u + +You're at west end of Twopit Room. + +The top of a 12-foot-tall beanstalk is poking out of the west pit. + +> w + +You're in Slab Room. + +> u + +You are in a secret n/s canyon above a large room. + +> reser + +You are at the edge of a large underground reservoir. An opaque cloud +of white mist fills the room and rises rapidly upward. The lake is +fed by a stream, which tumbles out of a hole in the wall about 10 feet +overhead and splashes noisily into the water somewhere within the +mist. There is a passage going back toward the south. + +> H'CFL + +The waters have parted to form a narrow path across the reservoir. + +> n + +You are walking across the bottom of the reservoir. Walls of water +rear up on either side. The roar of the water cascading past is +nearly deafening, and the mist is so thick you can barely see. + +> n + +You are at the northern edge of the reservoir. A northwest passage +leads sharply up from here. + +The waters have parted to form a narrow path across the reservoir. + +> w + +There is no way to go that direction. + +You're north of reservoir. + +The waters have parted to form a narrow path across the reservoir. + +> u + +You are scrambling along a treacherously steep, rocky passage. + +> u + +You are on a very steep incline, which widens at it goes upward. + +> u + +You are at the base of a nearly vertical cliff. There are some +slim footholds which would enable you to climb up, but it looks +extremely dangerous. Here at the base of the cliff lie the remains +of several earlier adventurers who apparently failed to make it. + +> u + +You are climbing along a nearly vertical cliff. + +> w + +There is no way to go that direction. + +You are climbing along a nearly vertical cliff. + +> d + +You're at base of cliff. + +> d + +You are on a very steep incline, which widens at it goes upward. + +> d + +You are scrambling along a treacherously steep, rocky passage. + +> d + +You're north of reservoir. + +The waters have parted to form a narrow path across the reservoir. + +> d + +There is no way to go that direction. + +You're north of reservoir. + +The waters have parted to form a narrow path across the reservoir. + +> take water + +Your bottle is now full of water. + +> s + +You're at bottom of reservoir. + +> s + +You're at reservoir. + +The waters have parted to form a narrow path across the reservoir. + +> s + +You are in a north/south canyon about 25 feet across. The floor is +covered by white mist seeping in from the north. The walls extend +upward for well over 100 feet. Suspended from some unseen point far +above you, an enormous two-sided mirror is hanging parallel to and +midway between the canyon walls. (The mirror is obviously provided +for the use of the dwarves who, as you know, are extremely vain.) A +small window can be seen in either wall, some fifty feet up. + +> s + +You are in a secret n/s canyon above a large room. + +> d + +You're in Slab Room. + +> s + +You're at west end of Twopit Room. + +The top of a 12-foot-tall beanstalk is poking out of the west pit. + +> d + +You're in west pit. + +There is a 12-foot-tall beanstalk stretching up out of the pit, +bellowing "WATER!! WATER!!" + +> water plant + +The plant grows explosively, almost filling the bottom of the pit. + +You're in west pit. + +There is a gigantic beanstalk stretching all the way up to the hole. + +> u + +You're at west end of Twopit Room. + +There is a huge beanstalk growing out of the west pit up to the hole. + +> e + +You are at the east end of the Twopit Room. The floor here is +littered with thin rock slabs, which make it easy to descend the pits. +There is a path here bypassing the pits to connect passages from east +and west. There are holes all over, but the only big one is on the +wall directly over the west pit where you can't get to it. + +There is a huge beanstalk growing out of the west pit up to the hole. + +> d + +You are at the bottom of the eastern pit in the Twopit Room. There is +a small pool of oil in one corner of the pit. + +> get oil + +Your bottle is now full of oil. + +> u + +You're at east end of Twopit Room. + +There is a huge beanstalk growing out of the west pit up to the hole. + +> w + +You're at west end of Twopit Room. + +There is a huge beanstalk growing out of the west pit up to the hole. + +> d + +You're in west pit. + +There is a gigantic beanstalk stretching all the way up to the hole. + +> climb + +You clamber up the plant and scurry through the hole at the top. + +You are in a long, narrow corridor stretching out of sight to the +west. At the eastern end is a hole through which you can see a +profusion of leaves. + +> w + +You are in the Giant Room. The ceiling here is too high up for your +lamp to show it. Cavernous passages lead east, north, and south. On +the west wall is scrawled the inscription, "FEE FIE FOE FOO" [sic]. + +There is a large nest here, full of golden eggs! + +> n + +You are at one end of an immense north/south passage. + +The way north is barred by a massive, rusty, iron door. + +> oil door + +The oil has freed up the hinges so that the door will now move, +although it requires some effort. + +> d + +There is no way to go that direction. + +You are at one end of an immense north/south passage. + +The way north leads through a massive, rusty, iron door. + +> n + +You are in a magnificent cavern with a rushing stream, which cascades +over a sparkling waterfall into a roaring whirlpool which disappears +through a hole in the floor. Passages exit to the south and west. + +There is a jewel-encrusted trident here! + +> w + +You are at the top of a steep incline above a large room. You could +climb down here, but you would not be able to climb up. There is a +passage leading back to the north. + +> d + +You are in a large low room. Crawls lead north, se, and sw. + +> se + +This is the Oriental Room. Ancient oriental cave drawings cover the +walls. A gently sloping passage leads upward to the north, another +passage leads se, and a hands and knees crawl leads west. + +There is a delicate, precious, ming vase here! + +> n + +You are following a wide path around the outer edge of a large cavern. +Far below, through a heavy white mist, strange splashing noises can be +heard. The mist rises up through a fissure in the ceiling. The path +exits to the south and west. + +> w + +You are in an alcove. A small nw path seems to widen after a short +distance. An extremely tight tunnel leads east. It looks like a very +tight squeeze. An eerie light can be seen at the other end. + +> nw + +You're in misty cavern. + +> s + +You're in Oriental Room. + +There is a delicate, precious, ming vase here! + +> e + +There is no way to go that direction. + +You're in Oriental Room. + +There is a delicate, precious, ming vase here! + +> se + +You are in a room whose walls resemble swiss cheese. Obvious passages +go west, east, ne, and nw. Part of the room is occupied by a large +bedrock block. + +> canyon + +You are in a tall e/w canyon. A low tight crawl goes 3 feet north and +seems to open up. + +> e + +You are at a wide place in a very tight n/s canyon. + +> s + +The canyon here becomes too tight to go further south. + +> n + +You are at a wide place in a very tight n/s canyon. + +> n + +You are in a tall e/w canyon. A low tight crawl goes 3 feet north and +seems to open up. + +> w + +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. + +To achieve the next higher rating, you need 44 more points. diff --git a/tests/tall.log b/tests/tall.log new file mode 100644 index 0000000..19081c6 --- /dev/null +++ b/tests/tall.log @@ -0,0 +1,167 @@ +## Coverage of LOC_TALL, LOC_WIDEPLACE, LOC_TIGHTPLACE +n +seed 1838473132 +in +take lamp +xyzzy +on +take rod +e +take cage +w +w +w +drop rod +take bird +take rod +w +d +d +free bird +w +take coins +e +s +take n +u +s +n +d +n +n +plugh +extin +plugh +on +s +s +sw +take +w +kill drago +y +e +e +u +d +n +n +off +plugh +out +s +w +n +s +s +n +in +take water +plugh +on +plove +s +plove +s +s +u +w +wave rod +west +w +w +w +s +s +e +s +kill machi +s +s +n +s +w +n +n +n +nw +d +e +e +e +e +e +n +n +n +off +plugh +plugh +on +s +s +u +n +n +d +bedqu +throw axe +slab +s +d +water plant +u +w +u +reser +H'CFL +n +n +w +u +u +u +u +w +d +d +d +d +d +take water +s +s +s +s +d +s +d +water plant +u +e +d +get oil +u +w +d +climb +w +n +oil door +d +n +w +d +se +n +w +nw +s +e +se +canyon +e +s +n +n +w \ No newline at end of file diff --git a/tests/threejunction.chk b/tests/threejunction.chk new file mode 100644 index 0000000..f2859b4 --- /dev/null +++ b/tests/threejunction.chk @@ -0,0 +1,343 @@ + +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 1838473132 +Seed set to 1838473132 + +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. + +> downs + +The stream flows out through a pair of 1 foot diameter sewer pipes. +It would be advisable to use the exit. + +You're inside building. + +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 lamp + +OK + +> xyzzy + +>>Foof!<< + +It is now pitch dark. If you proceed you will likely fall into a pit. + +> on + +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. + +> e + +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. + +> take cage + +OK + +> w + +You're in debris room. + +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. + +> take + +OK + +> 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. + +> d + +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. + +> d + +You are in the Hall of the Mountain King, with passages off in all +directions. + +A huge green fierce snake bars the way! + +> free bird + +The little bird attacks the green snake, and in an astounding flurry +drives the snake away. + +> w + +You are in the west side chamber of the Hall of the Mountain King. +A passage continues west and up here. + +There are many coins here! + +> e + +You're in Hall of Mt King. + +A cheerful little bird is sitting here singing. + +> s + +You are in the south side chamber. + +There is precious jewelry here! + +> n + +You're in Hall of Mt King. + +A cheerful little bird is sitting here singing. + +> u + +You're in Hall of Mists. + +Rough stone steps lead up the dome. + +> s + +This is a low room with a crude note on the wall. The note says, +"You won't get it up the steps". + +There is a large sparkling nugget of gold here! + +> n + +You're in Hall of Mists. + +Rough stone steps lead up the dome. + +> d + +You're in Hall of Mt King. + +A cheerful little bird is sitting here singing. + +> n + +You are in a low n/s passage at a hole in the floor. The hole goes +down to an e/w passage. + +There are bars of silver here! + +> n + +You are in a large room, with a passage to the south, a passage to the +west, and a wall of broken rock to the east. There is a large "Y2" on +a rock in the room's center. + +A hollow voice says "PLUGH". + +> plugh + +>>Foof!<< + +You're inside building. + +There are some keys on the ground here. + +There is food here. + +There is a bottle of water here. + +> extin + +Your lamp is now off. + +> plugh + +>>Foof!<< + +It is now pitch dark. If you proceed you will likely fall into a pit. + +> on + +Your lamp is now on. + +You're at "Y2". + +> plugh + +>>Foof!<< + +You're inside building. + +There are some keys on the ground here. + +There is food here. + +There is a bottle of water here. + +> take water + +OK + +> plugh + +>>Foof!<< + +You're at "Y2". + +> plugh + +>>Foof!<< + +You're inside building. + +There are some keys on the ground here. + +There is food here. + +> plugh + +>>Foof!<< + +You're at "Y2". + +> s + +You're in n/s passage above e/w passage. + +There are bars of silver here! + +> d + +You are in a dirty broken passage. To the east is a crawl. To the +west is a large passage. Above you is a hole to another passage. + +> bedqu + +You are in Bedquilt, a long east/west passage with holes everywhere. +To explore at random select north, south, up, or down. + +> n + +You are in a secret canyon at a junction of three canyons, bearing +north, south, and se. The north one is as tall as the other two +combined. + +> n + +You're at a low window overlooking a huge pit, which extends up out of +sight. A floor is indistinctly visible over 50 feet below. Traces of +white mist cover the floor of the pit, becoming thicker to the left. +Marks in the dust around the window would seem to indicate that +someone has been here recently. Directly across the pit from you and +25 feet away there is a similar window looking into a lighted room. A +shadowy figure can be seen there peering back at you. + +The shadowy figure seems to be trying to attract your attention. + +> w + +You're at junction of three secret canyons. + +> n + +You're at window on pit. + +The shadowy figure seems to be trying to attract your attention. + +> w + +You're at junction of three secret canyons. + +> s + +You are in a secret n/s canyon above a sizable passage. + +> s + +A large stalactite extends from the roof and almost reaches the floor +below. You could climb down it, and jump from it to the floor, but +having done so you would be unable to reach it to climb back up. + +> n + +You are in a secret n/s canyon above a sizable passage. + +> s + +You're at top of stalactite. + +> n + +You are in a secret n/s canyon above a sizable passage. + +> n + +You're at junction of three secret canyons. + +> n + +You're at window on pit. + +The shadowy figure seems to be trying to attract your attention. + +> jump + +You are at the bottom of the pit with a broken neck. + +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? + diff --git a/tests/threejunction.log b/tests/threejunction.log new file mode 100644 index 0000000..a6db0d7 --- /dev/null +++ b/tests/threejunction.log @@ -0,0 +1,53 @@ +## LOC_THREEJUNCTION, LOC_WINDOW2, LOC_SECRET2, LOC_TOPSTALACTITE, LOC_NECKBROKE, LOC_SEWER +n +seed 1838473132 +in +downs +take lamp +xyzzy +on +e +take cage +w +w +w +take +w +d +d +free bird +w +e +s +n +u +s +n +d +n +n +plugh +extin +plugh +on +plugh +take water +plugh +plugh +plugh +s +d +bedqu +n +n +w +n +w +s +s +n +s +n +n +n +jump \ No newline at end of file diff --git a/tests/woodshint.chk b/tests/woodshint.chk index a2104d7..c8cdc08 100644 --- a/tests/woodshint.chk +++ b/tests/woodshint.chk @@ -279,8 +279,42 @@ Do you want the hint? Go east ten times. If that doesn't get you out, then go south, then west twice, then south. +> s + +You are wandering aimlessly through the forest. + +> w + +You are wandering aimlessly through the forest. + +> w + +You are wandering aimlessly through the forest. + +> n + +You are wandering aimlessly through the forest. + +Your keen eye spots a severed leporine appendage lying on the ground. + +> n + +You are wandering aimlessly through the forest. + +> n + +The road, which approaches from the east, ends here amid the trees. + +> w + +You are wandering aimlessly through the forest. + +> n + +You're at end of road. + -You scored 30 out of a possible 430, using 37 turns. +You scored 30 out of a possible 430, using 45 turns. You are obviously a rank amateur. Better luck next time. diff --git a/tests/woodshint.log b/tests/woodshint.log index 6b6c0e5..6db609a 100644 --- a/tests/woodshint.log +++ b/tests/woodshint.log @@ -56,3 +56,11 @@ e e y y +s +w +w +n +n +n +w +n \ No newline at end of file -- 2.31.1