From: Eric S. Raymond Date: Wed, 14 Jun 2017 10:34:43 +0000 (-0400) Subject: Increase test coverage. X-Git-Tag: 1.1~327 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=b24670f4bcc70e19706c7a62f2723fc4f616fcb6;p=open-adventure.git Increase test coverage. --- diff --git a/tests/illformed.chk b/tests/illformed.chk index bbecd90..2e51eb9 100644 --- a/tests/illformed.chk +++ b/tests/illformed.chk @@ -175,6 +175,30 @@ I'm afraid I don't understand. Okay, from now on I'll only describe a place in full the first time you come to it. To get the full description, say "look". +> frob grate + +Sorry, I don't know the word "FROB". + +> read grate + +I'm afraid I don't understand. + +> grate + +What do you want to do with the grate? + +> building + +I don't know how to apply that word here. + +You're inside building. + +There are some keys on the ground here. + +There is a shiny brass lamp nearby. + +There is a bottle of water here. + > on Your lamp is now on. @@ -251,7 +275,7 @@ Okay, "BOO". > score -You have garnered 32 out of a possible 430 points, using 49 turns. +You have garnered 32 out of a possible 430 points, using 53 turns. > quit @@ -261,7 +285,7 @@ Do you really want to quit now? OK -You scored 32 out of a possible 430, using 50 turns. +You scored 32 out of a possible 430, using 54 turns. You are obviously a rank amateur. Better luck next time. diff --git a/tests/illformed.log b/tests/illformed.log index a78672f..555d4db 100644 --- a/tests/illformed.log +++ b/tests/illformed.log @@ -37,6 +37,10 @@ drink blood drink keys light keys brief +frob grate +read grate +grate +building on xyzzy take rod diff --git a/tests/ogrehint.chk b/tests/ogrehint.chk new file mode 100644 index 0000000..7f20576 --- /dev/null +++ b/tests/ogrehint.chk @@ -0,0 +1,705 @@ + +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 437547289 +Seed set to 437547289 + +You're in front of building. + +> 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 + +> 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 + +> e + +You're in Hall of Mists. + +Rough stone steps lead up the dome. + +> n + +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. + +> take bird + +OK + +> s + +You are in the south side chamber. + +There is precious jewelry here! + +> take jewelry + +OK + +> n + +You're in Hall of Mt King. + +> sw + +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. + +> 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 dragon + +With what? Your bare hands? + +> yes + +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. + +> drink blood + +Your head buzzes strangely for a moment. + +> e + +You're in secret e/w canyon above tight canyon. + +> e + +You're in Hall of Mt King. + +> 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! + +> take silver + +OK + +> 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. + +> 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. + +A precious jade necklace has been dropped here! + +There are some keys on the ground here. + +There is food here. + +There is a bottle of water here. + +> drop jewelry + +OK + +> drop rug + +I see no rug here. + +> drop silver + +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. + +> 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. + +> take appendage + +OK + +> free bird + +OK + +> drop cage + +OK + +> listen + +The bird is singing to you in gratitude for your having returned it to +its home. In return, it informs you of a magic word which it thinks +you may find useful somewhere near the Hall of Mists. The magic word +changes frequently, but for now the bird believes it is "F'JBV". You +thank the bird for this information, and it flies off into the forest. + +> 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 bars of silver here! + +There is precious jewelry here! + +A precious jade necklace has been dropped here! + +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. + +A hollow voice says "PLUGH". + +> on + +Your lamp is now on. + +You're at "Y2". + +A hollow voice says "PLUGH". + +> plover + +>>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! + +> ne + +A little dwarf just walked around a corner, saw you, threw a little +axe at you which missed, cursed, and ran away. + +You're in the dark-room. A corridor leading south is the only exit. + +There is a little axe here. + +A massive stone tablet imbedded in the wall reads: +"Congratulations on bringing light into the dark-room!" + +There is a platinum pyramid here, 8 inches on a side! + +> take pyramid + +OK + +> take axe + +OK + +> s + +You're in Plover Room. + +There is an emerald here the size of a plover's egg! + +> plover + +>>Foof!<< + +You're at "Y2". + +> s + +You're in n/s passage above e/w passage. + +> 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. + +> u + +You're in n/s passage above e/w passage. + +> s + +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 Mt King. + +> up + +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. + +A crystal bridge now spans the fissure. + +> 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! + +A crystal bridge now spans the fissure. + +> w + +There are 2 threatening little dwarves in the room with you. + +One sharp nasty knife is thrown at you! + +It misses! + +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 + +There are 2 threatening little dwarves in the room with you. + +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 + +There are 2 threatening little dwarves in the room with you. + +You are at the west end of a very long featureless hall. The hall +joins up with a narrow north/south passage. + +> s + +There are 2 threatening little dwarves in the room with you. + +You are in a maze of twisty little passages, all different. + +> sw + +There are 2 threatening little dwarves in the room with you. + +You are in a little maze of twisty passages, all different. + +> se + +There are 2 threatening little dwarves in the room with you. + +You are in a little maze of twisting passages, all different. + +> s + +There are 2 threatening little dwarves in the room with you. + +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 machine + +As you strike the vending machine, it pivots backward along with a +section of wall, revealing a dark passage leading south. + +> s + +There are 2 threatening little dwarves in the room with you. + +You are in a long, rough-hewn, north/south corridor. + +> s + +There are 2 threatening little dwarves in the room with you. + +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. + +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 large chamber with passages to the west and north. + +A formidable ogre bars the northern exit. + +> n + +The ogre snarls and shoves you back. + +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 large chamber with passages to the west and north. + +A formidable ogre bars the northern exit. + +> kill dwarf + +With what? Your bare hands? + +> 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 are in a large chamber with passages to the west and north. + +There is a little axe here. + +A formidable ogre bars the northern exit. + +> take axe + +OK + +> throw axe + +You attack a little dwarf, but he dodges out of the way. + +There is a threatening little dwarf in the room with you! + +One sharp nasty knife is thrown at you! + +It misses! + +You are in a large chamber with passages to the west and north. + +There is a little axe here. + +A formidable ogre bars the northern exit. + +> take axe + +OK + +> throw axe + +You killed a little dwarf. + +You are in a large chamber with passages to the west and north. + +There is a little axe here. + +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. + +There is a little axe here. + +A formidable ogre bars the northern exit. + +Do you need help dealing with the ogre? + +> y + +I am prepared to give you a hint, but it will cost you 4 points. + +Do you want the hint? + +> y + +There is nothing the presence of which will prevent you from defeating +him; thus it can't hurt to fetch everything you possibly can. + + +You scored 101 out of a possible 430, using 103 turns. + +Your score qualifies you as a novice class adventurer. + +To achieve the next higher rating, you need 20 more points. diff --git a/tests/ogrehint.log b/tests/ogrehint.log new file mode 100644 index 0000000..aee63dd --- /dev/null +++ b/tests/ogrehint.log @@ -0,0 +1,110 @@ +## Elicit the ogre hint. +n +seed 437547289 +seed 1071883378 +in +take lamp +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 +e +n +free bird +take bird +s +take jewelry +n +sw +w +kill dragon +yes +drink blood +e +e +n +take silver +n +off +plugh +drop jewelry +drop rug +drop silver +out +s +w +n +take appendage +free bird +drop cage +listen +s +s +n +in +take water +plugh +on +plover +ne +take pyramid +take axe +s +plover +s +d +u +s +up +w +w +w +w +w +s +sw +se +s +kill machine +s +s +n +n +kill dwarf +throw axe +take axe +throw axe +take axe +throw axe +n +y +y