From f52a78a1f8ce3f2bbf6728d6d1e4fc517afeddac Mon Sep 17 00:00:00 2001 From: NHOrus Date: Mon, 3 Jul 2017 21:54:27 +0300 Subject: [PATCH] Captured output of help and info commands Can't believe it wasn't done before --- tests/illformed.chk | 62 ++++++++++++++++++++++++++++++++++++++++++--- tests/illformed.log | 2 ++ 2 files changed, 61 insertions(+), 3 deletions(-) diff --git a/tests/illformed.chk b/tests/illformed.chk index b6c551b..d682a61 100644 --- a/tests/illformed.chk +++ b/tests/illformed.chk @@ -36,6 +36,62 @@ There is a puff of orange smoke; within it, fiery runes spell out: Open Adventure 1.1 - http://www.catb.org/esr/open-adventure/ +> help + +I know of places, actions, and things. Most of my vocabulary +describes places and is used to move you there. To move, try words +like forest, building, downstream, enter, east, west, north, south, +up, or down. I know about a few special objects, like a black rod +hidden in the cave. These objects can be manipulated using some of +the action words that I know. Usually you will need to give both the +object and action words (in either order), but sometimes I can infer +the object from the verb alone. Some objects also imply verbs; in +particular, "inventory" implies "take inventory", which causes me to +give you a list of what you're carrying. Some objects have unexpected +effects; the effects are not always desirable! Usually people having +trouble moving just need to try a few more words. Usually people +trying unsuccessfully to manipulate an object are attempting something +beyond their (or my!) capabilities and should try a completely +different tack. One point often confusing to beginners is that, when +there are several ways to go in a certain direction (e.g., if there +are several holes in a wall), choosing that direction in effect +chooses one of the ways at random; often, though, by specifying the +place you want to reach you can guarantee choosing the right path. +Also, to speed the game you can sometimes move long distances with a +single word. For example, "building" usually gets you to the building +from anywhere above ground except when lost in the forest. Also, note +that cave passages and forest paths turn a lot, so leaving one place +heading north doesn't guarantee entering the next from the south. +However (another important point), except when you've used a "long +distance" word such as "building", there is always a way to go back +where you just came from unless I warn you to the contrary, even +though the direction that takes you back might not be the reverse of +what got you here. Good luck, and have fun! + +> info + +For a summary of the most recent changes to the game, say "news". +If you want to end your adventure early, say "quit". To suspend your +adventure such that you can continue later, say "suspend" (or "pause" +or "save"). To see how well you're doing, say "score". To get full +credit for a treasure, you must have left it safely in the building, +though you get partial credit just for locating it. You lose points +for getting killed, or for quitting, though the former costs you more. +There are also points based on how much (if any) of the cave you've +managed to explore; in particular, there is a large bonus just for +getting in (to distinguish the beginners from the rest of the pack), +and there are other ways to determine whether you've been through some +of the more harrowing sections. If you think you've found all the +treasures, just keep exploring for a while. If nothing interesting +happens, you haven't found them all yet. If something interesting +*DOES* happen (incidentally, there *ARE* ways to hasten things along), +it means you're getting a bonus and have an opportunity to garner many +more points in the Master's section. I may occasionally offer hints +if you seem to be having trouble. If I do, I'll warn you in advance +how much it will affect your score to accept the hints. Finally, to +save time, you may specify "brief", which tells me never to repeat the +full description of a place unless you explicitly ask me to. + > eat grate Don't be ridiculous! @@ -512,7 +568,7 @@ Okay, "BOO". > score -You have garnered 27 out of a possible 430 points, using 98 turns. +You have garnered 27 out of a possible 430 points, using 100 turns. > z @@ -520,7 +576,7 @@ OK > score -You have garnered 27 out of a possible 430 points, using 100 turns. +You have garnered 27 out of a possible 430 points, using 102 turns. > quit keys @@ -534,7 +590,7 @@ Do you really want to quit now? OK -You scored 27 out of a possible 430, using 102 turns. +You scored 27 out of a possible 430, using 104 turns. You are obviously a rank amateur. Better luck next time. diff --git a/tests/illformed.log b/tests/illformed.log index 81e542b..8d6d734 100644 --- a/tests/illformed.log +++ b/tests/illformed.log @@ -3,6 +3,8 @@ foo y seed 1801426495 version +help +info eat grate in in -- 2.31.1