From: Aaron Traas Date: Thu, 29 Jun 2017 20:40:21 +0000 (-0400) Subject: Test coverage - add lots more coverage from actions.c X-Git-Tag: 1.1~5 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=d0a868bd4ac2bf4d3258f4fcdac328cef077eff5;p=open-adventure.git Test coverage - add lots more coverage from actions.c --- diff --git a/tests/bearbridge.chk b/tests/bearbridge.chk index 1e8a2d4..625849e 100644 --- a/tests/bearbridge.chk +++ b/tests/bearbridge.chk @@ -1609,11 +1609,24 @@ There is a ferocious cave bear eying you from the far end of the room! The bear is locked to the wall with a golden chain! +> attack + +With what? Your bare hands? Against *HIS* bear hands?? + +> unlock chain + +There is no way to get past the bear to unlock the chain, which is +probably just as well. + > feed bear The bear eagerly wolfs down your food, after which he seems to calm down considerably and even becomes rather friendly. +> carry bear + +The bear is still chained to the wall. + > unlock chain The chain is now unlocked. @@ -1722,7 +1735,7 @@ to try to reincarnate you? OK -You scored 247 out of a possible 430, using 284 turns. +You scored 247 out of a possible 430, using 287 turns. You may now consider yourself a "Seasoned Adventurer". diff --git a/tests/bearbridge.log b/tests/bearbridge.log index fb25536..25d1f48 100644 --- a/tests/bearbridge.log +++ b/tests/bearbridge.log @@ -271,7 +271,10 @@ ne ne barren in +attack +unlock chain feed bear +carry bear unlock chain take chain take bear diff --git a/tests/breakmirror.chk b/tests/breakmirror.chk index 2b631d1..5829120 100644 --- a/tests/breakmirror.chk +++ b/tests/breakmirror.chk @@ -2898,6 +2898,10 @@ not disturb the dwarves!" An immense mirror is hanging against one wall, and stretches to the other end of the room, where various other sundry objects can be glimpsed dimly in the distance. +> attack + +The shell is very strong and is impervious to attack. + > take oyster OK @@ -2905,6 +2909,18 @@ OK Interesting. There seems to be something written on the underside of the oyster. +> lock oyster + +Huh? + +> drop oyster + +OK + +> take oyster + +OK + > read oyster Hmmm, this looks like a clue, which means it'll cost you 10 points to @@ -2937,7 +2953,7 @@ The resulting ruckus has awakened the dwarves. There are now several threatening little dwarves in the room with you! Most of them throw knives at you! All of them get you! -You scored 383 out of a possible 430, using 465 turns. +You scored 383 out of a possible 430, using 469 turns. Your score puts you in Master Adventurer Class B. diff --git a/tests/breakmirror.log b/tests/breakmirror.log index b79cbb8..c9ec80a 100644 --- a/tests/breakmirror.log +++ b/tests/breakmirror.log @@ -465,6 +465,10 @@ e e e # Everything to here is from endgame428 +attack +take oyster +lock oyster +drop oyster take oyster read oyster y diff --git a/tests/carryfreebird.chk b/tests/carryfreebird.chk index 6b4a519..4c2f256 100644 --- a/tests/carryfreebird.chk +++ b/tests/carryfreebird.chk @@ -12,6 +12,10 @@ Seed set to 1495951709 You're in front of building. +> attack + +There is nothing here to attack. + > in You are inside a building, a well house for a large spring. @@ -304,7 +308,7 @@ feel something wet land on your head, but upon looking up you can see no sign of the culprit. -You scored 113 out of a possible 430, using 53 turns. +You scored 113 out of a possible 430, using 54 turns. Your score qualifies you as a novice class adventurer. diff --git a/tests/carryfreebird.log b/tests/carryfreebird.log index 3d148a1..7452ea8 100644 --- a/tests/carryfreebird.log +++ b/tests/carryfreebird.log @@ -1,6 +1,7 @@ ## Try to carry the bird after freeing it instead of listening n seed 1495951709 +attack in take lamp on diff --git a/tests/dropcagedbird.chk b/tests/dropcagedbird.chk index 28459e9..9e706dd 100644 --- a/tests/dropcagedbird.chk +++ b/tests/dropcagedbird.chk @@ -74,6 +74,11 @@ from east and west sides of the chamber. A cheerful little bird is sitting here singing. +> take bird + +The bird seemed unafraid at first, but as you approach it becomes +disturbed and you cannot catch it. + > drop rod OK @@ -120,7 +125,7 @@ OK OK -You scored 34 out of a possible 430, using 20 turns. +You scored 34 out of a possible 430, using 21 turns. You are obviously a rank amateur. Better luck next time. diff --git a/tests/dropcagedbird.log b/tests/dropcagedbird.log index baee5ab..28b7e70 100644 --- a/tests/dropcagedbird.log +++ b/tests/dropcagedbird.log @@ -11,6 +11,7 @@ take cage w w w +take bird drop rod take bird take rod diff --git a/tests/fillfail.chk b/tests/fillfail.chk index 48835ed..fd3d096 100644 --- a/tests/fillfail.chk +++ b/tests/fillfail.chk @@ -27,14 +27,22 @@ OK OK -> fill bottle +> drop water -Your bottle is already full. +OK + +> carry bottle + +OK > drink The bottle of water is now empty. +> fill bottle + +Your bottle is now full of water. + > xyzzy >>Foof!<< @@ -47,10 +55,10 @@ You can't fill that. > fill bottle -There is nothing here with which to fill the bottle. +Your bottle is already full. -You scored 32 out of a possible 430, using 8 turns. +You scored 32 out of a possible 430, using 10 turns. You are obviously a rank amateur. Better luck next time. diff --git a/tests/fillfail.log b/tests/fillfail.log index 5fa485d..afb125f 100644 --- a/tests/fillfail.log +++ b/tests/fillfail.log @@ -3,8 +3,10 @@ n in carry lamp carry bottle -fill bottle +drop water +carry bottle drink +fill bottle xyzzy fill lamp -fill bottle \ No newline at end of file +fill bottle diff --git a/tests/hint_snake.chk b/tests/hint_snake.chk index a331667..8dfcc8c 100644 --- a/tests/hint_snake.chk +++ b/tests/hint_snake.chk @@ -135,7 +135,7 @@ You're in Hall of Mt King. A huge green fierce snake bars the way! -> attack snake +> attack Attacking the snake both doesn't work and is very dangerous. diff --git a/tests/hint_snake.log b/tests/hint_snake.log index 511d7c1..9ffc302 100644 --- a/tests/hint_snake.log +++ b/tests/hint_snake.log @@ -20,7 +20,7 @@ w down down w -attack snake +attack w eat snake w diff --git a/tests/illformed.chk b/tests/illformed.chk index af9afa2..559bd40 100644 --- a/tests/illformed.chk +++ b/tests/illformed.chk @@ -19,8 +19,7 @@ You can type "help" for some general hints. For information on how to end your adventure, scoring, etc., type "info". - - - This program was originally developed by Willie Crowther. Most of the -features of the current program were added by Don Woods. Contact Don -if you have any questions, comments, etc. +features of the current program were added by Don Woods. You are running Open Adventure; there is a resource page at http://www.catb.org/esr/open-adventure/ 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 diff --git a/tests/lockchain.chk b/tests/lockchain.chk index 67809cd..5fc192a 100644 --- a/tests/lockchain.chk +++ b/tests/lockchain.chk @@ -260,7 +260,7 @@ The dragon is sprawled out on a persian rug!! There's nothing here it wants to eat (except perhaps you). -> kill dragon +> attack With what? Your bare hands? @@ -611,37 +611,52 @@ You are in a large chamber with passages to the west and north. A formidable ogre bars the northern exit. -> kill ogre +> attack -The ogre, who despite his bulk is quite agile, easily dodges your -attack. He seems almost amused by your puny effort. +Attac what? -One sharp nasty knife is thrown at you! +> n -The ogre, distracted by your rush, is struck by the knife. With a -blood-curdling yell he turns and bounds after the dwarf, who flees -in panic. You are left alone in the room. +The ogre snarls and shoves you back. -> n +There is a threatening little dwarf in the room with you! + +One sharp nasty knife is thrown at you! + +It misses! -You are in the ogre's storeroom. The only exit is to the south. +You are in a large chamber with passages to the west and north. -There is an enormous ruby here! +A formidable ogre bars the northern exit. > take ruby -OK +I see no ruby here. > s +There is no way to go that direction. + +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. +A formidable ogre bars the northern exit. + > w +There is a threatening little dwarf in the room with you! + You are in a long, rough-hewn, north/south corridor. > n +There is a threatening little dwarf in the room with you! + Dead end There is a massive vending machine here, swung back to reveal a @@ -649,30 +664,44 @@ southward passage. > n +There is a threatening little dwarf in the room with you! + You are in a little maze of twisting passages, all different. > n +There is a threatening little dwarf in the room with you! + You are in a little maze of twisty passages, all different. > nw +There is a threatening little dwarf in the room with you! + You are in a maze of twisty little passages, all different. > d +There is a threatening little dwarf in the room with you! + You're at west end of long hall. > e +There is a threatening little dwarf in the room with you! + You're at east end of long hall. > e +There is a threatening little dwarf in the room with you! + You're at west end of Hall of Mists. > e +There is a threatening little dwarf in the room with you! + You're on west bank of fissure. There are diamonds here! @@ -685,6 +714,8 @@ OK > e +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. @@ -693,6 +724,8 @@ A crystal bridge now 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. @@ -703,6 +736,8 @@ OK > 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". @@ -714,1013 +749,162 @@ OK > n -You're in Hall of Mists. - -There is a bottle of water here. - -> n - -You're in Hall of Mt King. - -> n - -You're in n/s passage above e/w passage. - -> n - -You're at "Y2". - -> 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 bars of silver here! - -There is a persian rug spread out on the floor! - -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. - -> drop gold - -OK - -> drop diamonds - -OK - -> drop pyramid - -OK - -> drop ruby - -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". - -> s - -You're in n/s passage above e/w passage. - -> s - -You are in the Hall of the Mountain King, with passages off in all -directions. - -> u +A little dwarf with a big knife blocks your way. There is a threatening little dwarf in the room with you! -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. +One sharp nasty knife is thrown at you! -There is a bottle of water here. +It misses! -Rough stone steps lead up the dome. +You're in nugget-of-gold room. -> take water +> n -OK +There are 2 threatening little dwarves in the room with you. -> throw axe +One sharp nasty knife is thrown at you! -You killed a little dwarf. +It misses! You're in Hall of Mists. -There is a little axe here. - -Rough stone steps lead up the dome. - -> take axe - -OK - -> n - -You're in Hall of Mt King. +There is a bottle of water here. > n -You are in a low n/s passage at a hole in the floor. The hole goes -down to an e/w passage. - -> d - -You're in dirty passage. - -> bedquilt - -You are in Bedquilt, a long east/west passage with holes everywhere. -To explore at random select north, south, up, or down. - -> 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. - -> 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. - -> F'UNJ - -The waters have parted to form a narrow path across the reservoir. - -> n +There are 2 threatening little dwarves in the room with you. -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. +You're in Hall of Mt King. > 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. - -> nw - -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 -make one last desperate grab. Your luck holds, as does your grip. -With an enormous heave, you lift yourself to the ledge above. +There are 2 threatening little dwarves in the room with you. -You are on a small ledge at the top of a nearly vertical cliff. -There is a low crawl leading off to the northeast. +You're in n/s passage above e/w passage. -> ne +> off -You have reached a dead end. +Your lamp is now off. -There is a richly-carved ebony statuette here! +It is now pitch dark. If you proceed you will likely fall into a pit. -> take ebony +> plugh -OK +Nothing happens. -> sw +There are 2 threatening little dwarves in the room with you. -You're at top of cliff. +2 of them throw knives at you! -> d +One of them gets you! -You are climbing along a nearly vertical cliff. +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 +> drop gold -You're at base of cliff. +Please answer the question. -> d +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? -You are on a very steep incline, which widens at it goes upward. +> drop diamonds -> d +Please answer the question. -You are scrambling along a treacherously steep, rocky passage. +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 +> drop pyramid -You're north of reservoir. +Please answer the question. -The waters have parted to form a narrow path across the reservoir. +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? -> take water +> drop ruby -Your bottle is now full of water. +Please answer the question. -> s +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? -You're at bottom of reservoir. +> plugh -> s +Please answer the question. -You're at reservoir. +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. +> on -> s +Please answer the question. -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. +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 in a secret n/s canyon above a large room. - -> d +Please answer the question. -You're in Slab Room. +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 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. +Please answer the question. -You're in west pit. - -There is a gigantic beanstalk stretching all the way up to the hole. +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. - -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. +Please answer the question. -> get oil +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? -Your bottle is now full of oil. +> take water -> u +Please answer the question. -You're at east end of Twopit Room. +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 huge beanstalk growing out of the west pit up to the hole. +> throw axe -> w +Please answer the question. -You're at west end of Twopit Room. +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 huge beanstalk growing out of the west pit up to the hole. +> take axe -> d +Please answer the question. -You're in 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? -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. - -> drop bottle - -OK - -> drop appendage - -OK - -> 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! - -> take trident - -OK - -> 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. - -> inven - -You are currently holding the following: -Brass lantern -Dwarf's axe -Jeweled trident -Ebony statuette - -> drop trident - -OK - -> drop ebony - -OK - -> drop axe - -OK - -> drop lantern +> n OK -> e - -You're in Plover Room. - -There is an emerald here the size of a plover's egg! - -> take emerald - -OK - -> w - -You're in alcove. - -There is a lamp shining nearby. - -There is a little axe here. - -There is a richly-carved ebony statuette here! - -There is a jewel-encrusted trident here! - -> take lamp - -OK - -> take axe - -OK - -> take ebony - -OK - -> take trident - -OK - -> nw - -You're in misty cavern. - -> s - -You're in Oriental Room. - -There is a delicate, precious, ming vase here! - -> take vase - -OK - -> 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. - -> e - -You are in the Soft Room. The walls are covered with heavy curtains, -the floor with a thick pile carpet. Moss covers the ceiling. - -A small velvet pillow lies on the floor. - -> take pillow - -OK - -> w - -You're in Swiss Cheese Room. - -> ne - -You're in Bedquilt. - -> e - -You are at a complex junction. A low hands and knees passage from the -north joins a higher crawl from the east to make a walking passage -going west. There is also a large room above. The air is damp here. - -> n - -You're in a large room carved out of sedimentary rock. The floor and -walls are littered with bits of shells imbedded in the stone. A -shallow passage proceeds downward, and a somewhat steeper one leads -up. A low hands and knees passage enters from the south. - -There is an enormous clam here with its shell tightly closed. - -> open clam - -A glistening pearl falls out of the clam and rolls away. Goodness, -this must really be an oyster. (I never was very good at identifying -bivalves.) Whatever it is, it has now snapped shut again. - -> s - -You're at complex junction. - -> u - -You are in a large room full of dusty rocks. There is a big hole in -the floor. There are cracks everywhere, and a passage leading east. - -> e - -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're in dirty passage. - -> u - -You're in n/s passage above e/w passage. - -> s - -You're in Hall of Mt King. - -> e - -You're in Hall of Mists. - -Rough stone steps lead up the dome. - -> w - -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 - -You're on west bank of fissure. - -A crystal bridge now spans the fissure. - -> w - -You're at west end of Hall of Mists. - -> s - -You are in a maze of twisty little passages, all alike. - -> e - -You are in a maze of twisty little passages, all alike. - -> s - -You are in a maze of twisty little passages, all alike. - -> s - -You are in a maze of twisty little passages, all alike. - -> s - -You are in a maze of twisty little passages, all alike. - -> n - -There are faint rustling noises from the darkness behind you. - -You are in a maze of twisty little passages, all alike. - -> e - -You are on the brink of a thirty foot pit with a massive orange column -down one wall. You could climb down here but you could not get back -up. The maze continues at this level. - -> e - -You are in a maze of twisty little passages, all alike. - -> nw - -Dead end - -There is a richly-carved ebony statuette here! - -There is an emerald here the size of a plover's egg! - -There is a delicate, precious, ming vase here! - -There is a jewel-encrusted trident here! - -The pirate's treasure chest is here! - -> inven - -You are currently holding the following: -Brass lantern -Velvet pillow -Dwarf's axe - -> take vase - -OK - -> take trident - -OK - -> take chest - -OK - -> take emerald - -OK - -> se - -You are in a maze of twisty little passages, all alike. - -> n - -You're at brink of pit. - -> d - -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 are inside a building, a well house for a large spring. - -There is an enormous ruby here! - -There is a platinum pyramid here, 8 inches on a side! - -There are diamonds here! - -There is a large sparkling nugget of gold here! - -There are bars of silver here! - -There is a persian rug spread out on the floor! - -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. - -> drop chest - -OK - -> drop pillow - -OK - -> drop vase - -The vase is now resting, delicately, on a velvet pillow. - -> drop trident - -OK - -> take keys - -OK - -> take food - -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 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. - -> s - -You're in n/s passage above e/w passage. - -> d - -You're in dirty passage. - -> w - -You're in dusty rock room. - -> d - -You're at complex junction. - -> n - -You're in Shell Room. - -There is an enormous oyster here with its shell tightly closed. - -> d - -You are in a long sloping corridor with ragged sharp walls. - -> d - -You are in a cul-de-sac about eight feet across. - -Off to one side lies a glistening pearl! - -> take pearl - -OK - -> u - -You are in a long sloping corridor with ragged sharp walls. - -> u - -You're in Shell Room. - -There is an enormous oyster here with its shell tightly closed. - -> s - -You're at complex junction. - -> w - -You're in Bedquilt. - -> w - -You're in Swiss Cheese Room. - -> w - -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 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. - -There is a huge beanstalk growing out of the west pit up to the hole. - -> 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 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're in narrow corridor. - -> w - -You're in Giant Room. - -There is a large nest here, full of golden eggs! - -> get eggs - -OK - -> n - -You are at one end of an immense north/south passage. - -Your keen eye spots a severed leporine appendage lying on the ground. - -There is an empty bottle here. - -The way north leads through a massive, rusty, iron door. - -> take bottle - -You can't carry anything more. You'll have to drop something first. - -> pour bottle - -Bottl what? - -> n - -You're in cavern with waterfall. - -> w - -You're at steep incline above large room. - -> d - -You're in large low room. - -> sw - -You are in a long winding corridor sloping out of sight in both -directions. - -> u - -You are on one side of a large, deep chasm. A heavy white mist rising -up from below obscures all view of the far side. A sw path leads away -from the chasm into a winding corridor. - -A rickety wooden bridge extends across the chasm, vanishing into the -mist. A notice posted on the bridge reads, "Stop! Pay troll!" - -A burly troll stands by the bridge and insists you throw him a -treasure before you may cross. - -> feed troll - -Gluttony is not one of the troll's vices. Avarice, however, is. - -> toss eggs - -The troll catches your treasure and scurries away out of sight. - -> ne - -You are on the far side of the chasm. A ne path leads away from the -chasm on this side. - -A rickety wooden bridge extends across the chasm, vanishing into the -mist. A notice posted on the bridge reads, "Stop! Pay troll!" - -The troll is nowhere to be seen. - -> ne - -You're in a long east/west corridor. A faint rumbling noise can be -heard in the distance. - -> barren - -You are standing at the entrance to a large, barren room. A notice -above the entrance reads: "Caution! Bear in room!" - -> unlock chain - -I see no chain here. - -> in - -You are inside a barren room. The center of the room is completely -empty except for some dust. Marks in the dust lead away toward the -far end of the room. The only exit is the way you came in. - -There is a ferocious cave bear eying you from the far end of the room! - -The bear is locked to the wall with a golden chain! - -> attack bear - -With what? Your bare hands? Against *HIS* bear hands?? - -> throw axe - -The axe misses and lands near the bear where you can't get at it. - -> throw food - -The bear eagerly wolfs down your food, after which he seems to calm -down considerably and even becomes rather friendly. - -> take chain - -The chain is still locked. - -> unlock chain - -The chain is now unlocked. - -> unlock chain - -It was already unlocked. - -> lock chain - -The chain is now locked. - -> lock chain - -It was already locked. - -> unlock chain - -The chain is now unlocked. - -> take bear - -OK - -> inven - -You are currently holding the following: -Set of keys -Brass lantern -Egg-sized emerald -Glistening pearl - -You are being followed by a very large, tame bear. - - -You scored 225 out of a possible 430, using 298 turns. +You scored 115 out of a possible 430, using 123 turns. -You may now consider yourself a "Seasoned Adventurer". +Your score qualifies you as a novice class adventurer. -To achieve the next higher rating, you need 26 more points. +To achieve the next higher rating, you need 6 more points. diff --git a/tests/lockchain.log b/tests/lockchain.log index 9793a85..a34ef87 100644 --- a/tests/lockchain.log +++ b/tests/lockchain.log @@ -47,7 +47,7 @@ n sw w feed dragon -kill dragon +attack yes drink blood take rug @@ -101,7 +101,7 @@ s kill machine s s -kill ogre +attack n take ruby s @@ -284,6 +284,7 @@ w d sw u +attack feed troll toss eggs ne diff --git a/tests/oilplant.chk b/tests/oilplant.chk index edb6ad5..07f3397 100644 --- a/tests/oilplant.chk +++ b/tests/oilplant.chk @@ -915,6 +915,10 @@ a large hole in the wall about 25 feet above you. There is a tiny little plant in the pit, murmuring "water, water, ..." +> carry plant + +The plant has exceptionally deep roots and cannot be pulled free. + > water plant The plant spurts into furious growth for a few seconds. @@ -1134,8 +1138,12 @@ There is a huge beanstalk growing out of the west pit up to the hole. What do you want to do with the plant? +> carry plant + +You can't be serious! + -You scored 185 out of a possible 430, using 184 turns. +You scored 185 out of a possible 430, using 186 turns. You may now consider yourself a "Seasoned Adventurer". diff --git a/tests/oilplant.log b/tests/oilplant.log index 576a573..a6f392f 100644 --- a/tests/oilplant.log +++ b/tests/oilplant.log @@ -148,6 +148,7 @@ take axe slab s d +carry plant water plant u w @@ -186,3 +187,4 @@ u w u oil plant +carry plant \ No newline at end of file diff --git a/tests/urntest.chk b/tests/urntest.chk index 994973e..ff611cb 100644 --- a/tests/urntest.chk +++ b/tests/urntest.chk @@ -332,6 +332,10 @@ There is a persian rug spread out on the floor! The blood-specked body of a huge green dead dragon lies to one side. +> carry blood + +There are only a few drops--not enough to carry. + > drink blood Your head buzzes strangely for a moment. @@ -1965,6 +1969,10 @@ down, but a small ledge can be seen to the west across the chasm. A small urn is embedded in the rock. +> carry urn + +The urn is far too firmly embedded for your puny strength to budge it. + > light urn The urn is empty and will not light. @@ -1993,9 +2001,9 @@ The urn is already full of oil. I'm afraid I don't understand. -> extinguish urn +> extinguish -The urn is now dark. +I'm afraid I don't understand. > fly @@ -2003,7 +2011,7 @@ If you mean to use the persian rug, it does not appear inclined to cooperate. -You scored 267 out of a possible 430, using 337 turns. +You scored 267 out of a possible 430, using 339 turns. You have reached "Junior Master" status. diff --git a/tests/urntest.log b/tests/urntest.log index 0997244..a0d6be1 100644 --- a/tests/urntest.log +++ b/tests/urntest.log @@ -57,6 +57,7 @@ take axe w kill dragon yes +carry blood drink blood take rug e @@ -331,6 +332,7 @@ n n n # Everything to here copied from endgame428 +carry urn light urn # Changed below from "fill urn" in order to test more code pour bottle @@ -339,5 +341,5 @@ drink oil light urn fill urn read urn -extinguish urn +extinguish fly