Crowther's Original Adventure Source Code Found
drxenos writes "I don't know how many of you are fans of old-school text adventures (interactive fiction), but Will Crowther's original Fortran source code has been located in a backup of Don Woods's old student account. For fans like me, this is like finding the Holy Grail."
I looked at the various FORTRAN files and am amazed at the spaghetti GOTO maze which, although messy, was probably the only way to do things in FORTRAN at the time with no structuring capability.
A random example:
IF(K.NE.1) MASK1="177*M2(K)
IF(((A(J).XOR."201004020100).AND.MASK1).EQ.0)GOTO 3
IF(S.EQ.0) GOTO 2
Wow! Is that the opposite of self-documenting code or what?
Those interactive books came about because of Adventure.
Can we get a "-1 Wrong" moderation option?
The adventure source is a great find. I've been looking for the Scheme source tarball from the 1986-1987 period (i.e. when SICP was still new) for over a year, with no success. The changelog is online, and shows the work that was done in that period, but none of the tarballs still exists. Anyone have a Scheme distribution tarball from late 1987? I would like to run the code from that time along with the book to do screen captures, etc for something I'm working on.
My first expose to Collosal Cave was when I was about 10ish... my Dad was a programmer(mainframes... mostly IBM, sperry etc) and I played it on a Sperry mainframe terminal. It may be hard to imagine for someone like yourself that has probably grown up with high resolution, high powered desktop PCs... but playing it for me was eye opening in the extreme. I suspect Im not alone and many other got hooked on development and technology because of interactive stuff like the good old original adventure.
xyzzy
This is why the grandmaster of 'Literate Programming', Donald Knuth, has done a translation into his CWEB Language which is totaly devoid of jumps and other 'dirty' Fortan:
http://www.literateprogramming.com/adventure.pdf
This was fun. I remember running it on a teletype terminal in programming class (damn, thats old) BANG BANG BANG BANG BANG. You couldn't do a quick CLS to hide the evidence when the instructor came by, "Do you think paper grows on trees?" he yell. Of course all was forgiven when we showed him our course work was done. Then, he made us write our own dungeon code.
Much later, Don Brown(?) came out with EAMON, with a write your own framework. Fun fun fun.
Politics is the art of looking for trouble, finding it everywhere, diagnosing it incorrectly and applying the wrong fix.
I'm not sure about the PDP-11 era, but as early as the mid-80's it was common to use .doc to indicate that something was a general document as opposed to a .ltr, .mem, or the like. The word processor used was irrelevant. (We used XyWrite at the time.) MS Word commandeering .doc is a relatively new phenomenon - the .doc extension itself is not.
Zork was the reason I got on the ARPANET, back around 1980 or so. I was using Bruce's Northstar BBS that had an adventure game that Bruce had written in Basic, and he told me how to play Zork: first, dial up the NBS TIP, connect to MIT-AI (the command was "@L 134", because the ARPANET had 8 bit host numbers, and AI was 134), and apply for an account to learn Lisp. Once that was granted, I connected to MIT-DM ("@L 70"), and logged in as URANUS, password RINGS, used :CHUNAME to change my user name, and waited until one of the two people playing Zork quit, to take their slot. Later somebody told me the magic words to use to get an account on DM, so I applied for my own account on DM, claiming that I wanted to "Learn MDL for calculus and algebraic applications". The source code to Zork was well hidden. DM ran a weird version of ITS that had some kind of file security or cloaking, it was rumored. I was always looking for the Zork sources, but never found it on DM.
Years later I googled for a unique phrase that was only in the original DM version of Zork, and this URL popped up: http://retro.co.za/adventure/zork-mdl/
The original MDL source to Zork is really beautiful code that's almost as fun to read as it was to play. I had discovered a bug in the InfoCom version of Zork, which turned out to be in the original sources. When you're fighting the troll who's wielding an Axe, you can give anything to the troll and he will eat it. So I tried "give axe to troll" and he ate his axe, then cowered in the corner! Better yet you can go "give troll to troll" and he will eat himself and disappear, unfortunately not clearing the troll flag that is required to leave the room, so if you try to leave it prints a message saying the troll fends you off with a menacing gesture, and stops you from leaving. Sure enough, in the original sources, there is a troll flag!
-Don
Take a look and feel free: http://www.PieMenu.com
Along with Adventure, we spent a lot of time on a VAX 11/785 (I believe) playing a game called Hunt. It was multiplayer and each screen showed a top-down section of the maze you were in, like larn, only past that it was like a FPS -- you wandered around, finding ammo, then shooting at other players you saw, using different weapons. A certain amount of ammo let you shoot a bullet, somewhat more a grenade, somewhat more yet an enormous blast that blew up part of the maze, and a whole lot of ammo let you shoot napalm, that ran along corridors without destroying anything (but would pursue people who were running.) I've been trying to find the sourcecode for it for years but haven't even found anyone who has heard of it. Anyone here?
Nostalgia's not what it used to be.
I wouldn't really be surprised even though Diku and SMAUG are the most prevalent there are a lot of PennMUSH servers out there. Though people have destroyed Richard Woolcock's Godwars codebase and flooded the proverbial market with them I'm continually amazed at innovations people make in new games and many times I come across some that are much more complex than any graphical MMO. Richard Woolcock's Godwars 2/Gladiator Pits 3 codebase is insanely complex and has a fighting system that's richer and deeper than 95% of the console fighting games. It's a bit sad that some people have forgone the license restrictions and decide to make a profit off their games.
Excuse me while I gather the virgin sacrifice and assemble the pentagram required to solve your problem
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. There is a PDP-10 with a card reader and terminal here. A box of punchcards sits nearby.
> get box
You now have the box of punchcards.
> input cards
You carefully feed the cards into the card reader.
> look terminal
The terminal says:
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.
- None can love freedom heartily, but good men; the rest love not freedom, but license. -- John Milton
This story mildly creeps me out.
I worked down the hall from Willie Crowther when I was at BBN, and I asked him about why he wrote it ("I had some ideas on parsing response analysis I wanted to try"). I think I at least used to have a copy of the Fortran source code salted away on my account somewhere, though I'd probably have a problem laying my hands on it now. I just wasn't aware that anyone was looking for it.
In fact, a switch in Java gets compiled into a computed goto in jasmin.