Slashdot Mirror


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."

11 of 309 comments (clear)

  1. A good example of how coding has progressed by Anonymous Coward · · Score: 5, Interesting
    Increased memory (both RAM & Disc storage) availability has allowed us to make our code more readable.
    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?

    1. Re:A good example of how coding has progressed by LMacG · · Score: 5, Interesting

      Ah, the old computed GOTO. In the first line, the value of KQ is used as an index to the list of labels. If KQ=1, GOTO 5014, if KQ=2, GOTO 5000, etc. etc. If KQ is outside the range (0 or greater than 4), then no GOTO is performed, so you'd hit the PAUSE statement. Looks like it's essentially saying "this shouldn't happen".

      2027 is similar, there's just a lot more possible values. That rogue 1 is a continuation indicator, it would have been in column 6 on your punch card.

      --
      Slightly disreputable, albeit gregarious
    2. Re:A good example of how coding has progressed by fm6 · · Score: 3, Interesting

      Yeah, Perl has gotos (computed and otherwise) but it also has block structure. Which is why few Perl programmers ever have occasion to write a goto. (I don't think I ever have.) Perl's readability problems are exactly the opposite of FORTRAN's. Where FORTRAN's designers knew too little about artificial language theory, Perl's designers know way too much! Indeed, Larry Wall started out as a linguist, and can't seem to stop dreaming up clever language constructs. The result is a language that has a nasty tendency to bring out the poet in the programmer. Why is that a bad thing? Because, as any English 101 student will tell you, reading poetry is hard work.

  2. Reversed causation by dazedNconfuzed · · Score: 4, Interesting

    Those interactive books came about because of Adventure.

    --
    Can we get a "-1 Wrong" moderation option?
  3. History - Looking for Scheme tarball 1986-87 era by scottsk · · Score: 3, Interesting

    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.

  4. Re:This sounds familiar by Xiaran · · Score: 3, Interesting

    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

  5. Re:A good example of how coding has progressed, by junge_m · · Score: 5, Interesting

    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

  6. EAMON!!!! by WED+Fan · · Score: 3, Interesting

    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.
  7. Re:Found? When was it lost? by ari_j · · Score: 3, Interesting

    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.

  8. Original Zork source code in MDL by SimHacker · · Score: 5, Interesting

    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
  9. Re:Wait for the Game... by spun · · Score: 4, Interesting

    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