6 1,'Somewhere nearby is Colossal Cave, where others have found fortunes in' 1,'treasure and gold, though it is rumored that some who enter are never' 1,'seen again. Magic is said to work in the cave. I will be your eyes' 1,'and hands. Direct me with commands of 1 or 2 words. I should warn' 1,'you that I look at only the first four letters of each word, so you''ll' 1,'have to enter "NORTHEAST" as "NE" to distinguish it from "NORTH".' 1,'(Should you get stuck, type "HELP" for some general hints. For infor-' 1,'mation on how to end your adventure, etc., type "INFO".)' 1,' - - -' 1,'This program is a demonstration of FORTRAN 77 on the ISIS-II Operating' 1,'System. It is taken from a game originally developed by Stanford' 1,'University Artificial Intelligence Lab, and derives from the obscure' 1,'game "Dungeons and Dragons"...' 2,'a little dwarf with a big knife blocks your way.' 3,'A little dwarf just walked around a corner, saw you, threw a little' 3,'axe at you which missed, cursed, and ran away.' 4,'There is a threatening little dwarf in the room with you!' 5,'One sharp nasty knife is thrown at you!' 6,'None of them hit you!' 7,'One of them gets you!' 8,'A hollow voice says "PLUGH".' 9,'There is no way to go that direction.' 10,'I am unsure how you are facing. Use compass points or nearby objects.' 11,'I do not know in from out here. Use compass points or name something' 11,'in the general direction you want to go.' 12,'I do not know how to apply that word here.' 13,'I do not understand that!' 14,'I''m game. Would you care to explain how?' 15,'Sorry, but I am not allowed to give more detail. I will repeat the' 15,'long description of your location.' 16,'It is now pitch dark. If you proceed you will likely fall into a pit.' 17,'If you prefer, simply type W rather than west.' 18,'Are you trying to catch the bird?' 19,'The bird is frightened right now and you cannot catch it no matter' 19,'what you try. Perhaps you might try later.' 20,'Are you trying to somehow deal with the snake?' 21,'You cannot kill the snake, or drive it away, or avoid it, or anything' 21,'like that. There is a way to get by, but you do not have the necessary' 21, 'resources right now.' 22,'Do you really want to quit now?' 23,'You fell into a pit and broke every bone in your body!' 24,'You are already carrying it!' 25,'You cannot be serious!' 26,'The bird was unafraid when you entered, but as you approach it becomes' 26,'disturbed and you cannot catch it.' 27,'You can catch the bird, but you cannot carry it.' 28,'There is nothing here with a lock!' 29,'You are not carrying it!' 30,'The little bird attacks the green snake, and in an astounding flurry' 30,'drives the snake away.' 31,'You have no keys!' 32,'It has no lock.' 33,'I do not know how to lock or unlock such a thing.' 34,'It was already locked.' 35,'The grate is now locked.' 36,'The grate is now unlocked.' 37,'It was already unlocked.' 38,'You have no source of light.' 39,'Your lamp is now on.' 40,'Your lamp is now off.' 41,'There is no way to get past the bear to unlock the chain, which is' 41,'probably just as well.' 42,'Nothing happens.' 43,'Where?' 44,'There is nothing here to attack.' 45,'The little bird is now dead. Its body disappears.' 46,'Attacking the snake both doesn''t work and is very dangerous.' 47,'You killed a little dwarf.' 48,'You attack a little dwarf, but he dodges out of the way.' 49,'With what? Your bare hands?' 50,'Good try, but that is an old worn-out magic word.' 51,'I know of places, actions, and things. Most of my vocabulary' 51,'describes places and is used to move you there. To move, try words' 51,'like forest, building, dnstream, enter, east, west, north, south,' 51,'up, or down. I know about a few special objects, like a black rod' 51,'hidden in the cave. These objects can be manipulated using some of' 51,'the action words that I know. Usually you will need to give both the' 51,'object and action words (in either order), but sometimes I can infer' 51,'the object from the verb alone. Some objects also imply verbs; in' 51,'particular, "inventory" implies "take inventory", which causes me to' 51,'give you a list of what you are carrying. The objects have side' 51,'effects; for instance, the rod scares the bird. Usually people having' 51,'trouble moving just need to try a few more words. Usually people' 51,'trying unsuccessfully to manipulate an object are attempting something' 51,'beyond their (or my!) capabilities and should try a completely' 51,'different tack. To speed the game you can sometimes move long' 51,'distances with a single word. For example, "building" usually gets' 51,'you to the building from anywhere above ground except when lost in the' 51,'forest. Also, note that cave passages turn a lot, and that leaving a' 51,'room to the north does not guarantee entering the next from the south.' 51,'GOOD LUCK!' 52,'It misses!' 53,'It gets you!' 54,'Okay' 55,'You cannot unlock the keys.' 56,'You have crawled around in some little holes and wound up back in the' 56,'main passage.' 57,'I do not know where the cave is, but hereabouts no stream can run on' 57,'the surface for long. I would try the stream.' 58,'I need more detailed instructions to do that.' 59,'I can only tell you what you see as you move about and manipulate' 59,'things. I cannot tell you where remote things are.' 60,'I do not know that word.' 61,'What?' 62,'Are you trying to get into the cave?' 63,'The grate is very solid and has a hardened steel lock. You cannot' 63,'enter without a key, and there are no keys nearby. I would recommend' 63,'looking elsewhere for the keys.' 64,'The trees of the forest are large hardwood oak and maple, with an' 64,'occasional grove of pine or spruce. There is quite a bit of under-' 64,'growth, largely birch and ash saplings plus nondescript bushes of' 64,'various sorts. This time of year visibility is quite restricted by' 64,'all the leaves, but travel is quite easy if you detour around the' 64,'spruce and berry bushes.' 65,'Welcome to Adventure!! Would you like instructions?' 66,'Digging without a shovel is quite impractical. Even with a shovel' 66,'progress is unlikely.' 67,'Blasting requires dynamite.' 68,'I am as confused as you are.' 69,'Mist is a white vapor, usually water, seen from time to time in' 69,'caverns. It can be found anywhere but is frequently a sign of a deep' 69,'pit leading down to water.' 70,'Your feet are now wet.' 71,'I think I just lost my appetite.' 72,'Thank you, it was delicious!' 73,'You have taken a drink from the stream. The water tastes strongly of' 73,'minerals, but is not unpleasant. It is extremely cold.' 74,'The bottle of water is now empty.' 75,'Rubbing the electric lamp is not particularly rewarding. Anyway,' 75,'nothing exciting happens.' 76,'Peculiar. Nothing unexpected happens.' 77,'Your bottle is empty and the ground is wet.' 78,'You cannot pour that.' 79,'Watch it!' 80,'Which way?' 81,'Oh dear, you seem to have gotten yourself killed. I might be able to' 81,'help you out, but I''ve never really done this before. Do you want me' 81,'to try to reincarnate you?' 82,'All right. But do not blame me if something goes wr......' 82,' --- POOF!! ---' 82,'You are engulfed in a cloud of orange smoke. Coughing and gasping,' 82,'you emerge from the smoke and find....' 83,'You clumsy oaf, you''ve done it again! I don''t know how long I can' 83,'keep this up. Do you want me to try reincarnating you again?' 84,'Okay, now where did I put my orange smoke?.... >POOF!<' 84,'Everything disappears in a dense cloud of orange smoke.' 85,'Now you''ve really done it! I''m out of orange smoke! You don''t expect' 85,'me to do a decent reincarnation without any orange smoke, do you?' 86,'Okay, if you are so smart, do it yourself! I''m leaving!' 90,'>>> MESSAGES 81 THRU 90 ARE RESERVED FOR "OBITUARIES". <<<' 91,'Sorry, but I no longer seem to remember how it was you got here.' 92,'You cannot carry anything more. You''ll have to drop something first.' 93,'You cannot go through a locked steel grate!' 94,'I believe what you want is right here with you.' 95,'You do not fit through a two-inch slit!' 96,'I respectfully suggest you go across the bridge instead of jumping.' 97,'There is no way across the fissure.' 98,'You are not carrying anything.' 99,'You are currently holding the following:' 100,'It''s not hungry (it''s merely pinin'' for the fjords). Besides, you' 100,'have no bird seed.' 101,'The snake has now devoured your bird.' 102,'There is nothing here it wants to eat (except perhaps you).' 103,'You fool, dwarves eat only coal! Now you''ve made him *REALLY* mad!!' 104,'You have nothing in which to carry it.' 105,'Your bottle is already full.' 106,'There is nothing here with which to fill the bottle.' 107,'Your bottle is now full of water.' 108,'Your bottle is now full of oil.' 109,'You cannot fill that.' 110,'Don''t be ridiculous!' 111,'The door is extremely rusty and refuses to open.' 112,'The plant indignantly shakes the oil off its leaves and asks, "Water?"' 113,'The hinges are quite thoroughly rusted now and will not budge.' 114,'The oil has freed up the hinges so that the door will now move,' 114,'although it requires some effort.' 115,'The plant has exceptionally deep roots and cannot be pulled free.' 116,'The dwarves'' knives vanish as they strike the walls of the cave.' 117,'Something you are carrying won''t fit through the tunnel with you.' 117,'You''d best take inventory and drop something.' 118,'You cannot fit this five-foot clam through that little passage!' 119,'You cannot fit this five-foot oyster through that little passage!' 120,'I advise you to put down the clam before opening it. >STRAIN!<' 121,'I advise you to put down the oyster before opening it. >WRENCH!<' 122,'You don''t have anything strong enough to open the clam.' 123,'You don''t have anything strong enough to open the oyster.' 124,'A glistening pearl falls out of the clam and rolls away. Goodness,' 124,'this must really be an oyster. (I never was very good at identifying' 124,'bivalves.) Whatever it is, it has now snapped shut again.' 125,'The oyster creaks open, revealing nothing but oyster inside. It' 125,'promptly snaps shut again.' 126,'You have crawled around in some little holes and found your way' 126,'blocked by a recent cave-in. You are now back in the main passage.' 127,'There are faint rustling noises from the darkness behind you.' 128,'Out from the shadows behind you pounces a bearded pirate! "Har, har,"' 128,'he chortles, "I''ll just take all this booty and hide it away with me' 128,'chest deep in the maze!" He snatches your treasure and vanishes into' 128,'the gloom.' 129,'A sepulchral voice reverberating through the cave, says, "Cave closing' 129,'soon. All adventurers exit immediately through main office."' 130,'A mysterious recorded voice groans into life and announces:' 130,' "This exit is closed. Please leave via main office."' 131,'It looks as though you are dead. Well, seeing as how it''s so close to' 131,'closing time anyway, I think we''ll just call it a day.' 132,'The sepulchral voice entones, "The cave is now closed." As the echoes' 132,'fade, there is a blinding flash of light (and a small puff of orange' 132,'smoke). . . . As your eyes refocus, you look around and find...' 133,'There is a loud explosion, and a twenty-foot hole appears in the far' 133,'wall, burying the dwarves in the rubble. You march through the hole' 133,'and find yourself in the main office, where a cheering band of' 133,'friendly elves carry the conquering adventurer off into the sunset.' 134,'There is a loud explosion, and a twenty-foot hole appears in the far' 134,'wall, burying the snakes in the rubble. A river of molten lava pours' 134,'in through the hole, destroying everything in its path, including you!' 135,'There is a loud explosion, and you are suddenly splashed across the' 135,'walls of the room.' 136,'The resulting ruckus has awakened the dwarves. There are now several' 136,'threatening little dwarves in the room with you! Most of them throw' 136,'knives at you! All of them get you!' 137,'Oh, leave the poor unhappy bird alone.' 138,'I daresay whatever you want is around here somewhere.' 139,'I do not know the word "STOP". Use "QUIT" if you want to give up.' 140,'You cannot get there from here.' 141,'You are being followed by a very large, tame bear.' 142,'If you want to end your adventure early, say "QUIT". ' 142,'To see how well you are doing, say "SCORE". To get full credit for a' 142,'treasure, you must have left it safely in the building, though you get' 142,'partial credit just for locating it. You lose points for getting' 142,'killed, or for quitting, though the former costs you more. There are' 142,'also points based on how much (if any) of the cave you''ve managed to' 142,'explore; in particular, there is a large bonus just for getting in (to' 142,'distinguish the beginners from the rest of the pack), and there are' 142,'other ways to determine whether you''ve been through some of the more' 142,'harrowing sections. If you think you''ve found all the treasures, just' 142,'keep exploring for a while. If nothing interesting happens, you' 142,'have not found them all yet. If something interesting *DOES* happen,' 142,'it means you are getting a bonus and have an opportunity to garner many' 142,'more points in the master''s section. I may occasionally offer hints' 142,'if you seem to be having trouble. If I do, I''ll warn you in advance' 142,'how much it will affect your score to accept the hints. Finally, to' 142,'save paper, you may specify "BRIEF", which tells me never to repeat' 142,'the full description of a place unless you explicitly ask me to.' 143,'Do you indeed wish to quit now?' 144,'There is nothing here with which to fill the vase.' 145,'The sudden change in temperature has delicately shattered the vase.' 146,'It is beyond your power to do that.' 147,'I do not know how.' 148,'It is too far up for you to reach.' 149,'You killed a little dwarf. The body vanishes in a cloud of greasy' 149,'black smoke.' 150,'The shell is very strong and is impervious to attack.' 151,'What''s the matter, can''t you read? Now you''d best start over.' 152,'The axe bounces harmlessly off the dragon''s thick scales.' 153,'The dragon looks rather nasty. You''d best not try to get by.' 154,'The little bird attacks the green dragon, and in an astounding flurry' 154,'gets burnt to a cinder. The ashes blow away.' 155,'On what?' 156,'Okay, from now on I''ll only describe a place in full the first time' 156,'you come to it. To get the full description, say "LOOK".' 157,'Trolls are close relatives with the rocks and have skin as tough as' 157,'that of a rhinoceros. The troll fends off your blows effortlessly.' 158,'The troll deftly catches the axe, examines it carefully, and tosses it' 158,'back, declaring, "Good workmanship, but it''s not valuable enough."' 159,'The troll catches your treasure and scurries away out of sight.' 160,'The troll refuses to let you cross.' 161,'There is no longer any way across the chasm.' 162,'Just as you reach the other side, the bridge buckles beneath the' 162,'weight of the bear, which was still following you around. You' 162,'scrabble desperately for support, but as the bridge collapses you' 162,'stumble back and fall into the chasm.' 163,'The bear lumbers toward the troll, who lets out a startled shriek and' 163,'scurries away. The bear soon gives up the pursuit and wanders back.' 164,'The axe misses and lands near the bear where you cannot get at it.' 165,'With what? Your bare hands? Against *HIS* bear hands??' 166,'The bear is confused; he only wants to be your friend.' 167,'For crying out loud, the poor thing is already dead!' 168,'The bear eagerly wolfs down your food, after which he seems to calm' 168,'down considerably and even becomes rather friendly.' 169,'The bear is still chained to the wall.' 170,'The chain is still locked.' 171,'The chain is now unlocked.' 172,'The chain is now locked.' 173,'There is nothing here to which the chain can be locked.' 174,'There is nothing here to eat.' 175,'Do you want the hint?' 176,'Do you need help getting out of the maze?' 177,'You can make the passages look less alike by dropping things.' 178,'Are you trying to explore beyond the Plover room?' 179,'There is a way to explore that region without having to worry about' 179,'falling into a pit. None of the objects available is immediately' 179,'useful in discovering the secret.' 180,'Do you need help getting out of here?' 181,'Do not go west.' 182,'Gluttony is not one of the troll''s vices. Avarice, however, is.' 183,'Your lamp is getting dim. You''d best start wrapping this up, unless' 183,'you can find some fresh batteries. I seem to recall there''s a vending' 183,'machine in the maze. Bring some coins with you.' 184,'Your lamp has run out of power.' 185,'There''s not much point in wandering around out here, and you cannot' 185,'explore the cave without a lamp. So let''s just call it a day.' 186,'There are faint rustling noises from the darkness behind you. As you' 186,'turn toward them, the beam of your lamp falls across a bearded pirate.' 186,'He is carrying a large chest. "Shiver me timbers!" he cries, "I''ve' 186,'been spotted! I''d best hie meself off to the maze to hide me chest!"' 186,'With that, he vanishes into the gloom.' 187,'Your lamp is getting dim. You''d best go back for those batteries.' 188,'Your lamp is getting dim. I''m taking the liberty of replacing the' 188,'batteries.' 189,'Your lamp is getting dim, and you are out of spare batteries. You''d' 189,'best start wrapping this up.' 190,'I''m afraid the magazine is written in dwarvish.' 191,'"This is not the maze where the pirate leaves his treasure chest."' 192,'Hmmm, this looks like a clue, which means it will cost you 10 points to' 192,'read it. Should I go ahead and read it anyway?' 193,'It says, "There is something strange about this place, such that one' 193,'of the words I''ve always known now has a new effect."' 194,'It says the same thing it did before.' 195,'I''m afraid I do not understand.' 196,'"Congratulations on bringing light into the Dark-room!"' 197,'You strike the mirror a resounding blow, whereupon it shatters into a' 197,'myriad tiny fragments.' 198,'You have taken the vase and hurled it delicately to the ground.' 199,'You prod the nearest dwarf, who wakes up grumpily, takes one look at' 199,'you, curses, and grabs for his axe.' 200,'Is this acceptable?' 201,'Sorry, there''s no way out save quitting.' 202,'Colossal cave is *ALWAYS* open, provided this is your MDS-80.' -1,'END'