back to article You are likely to be eaten by the MIT license: Microsoft frees Zork source

Microsoft developer boss Scott Hanselman saved the company's Ignite shindig this week by unveiling the source code for Zork I-III, all available under the MIT license. "Our goal is simple: to place historically important code in the hands of students, teachers, and developers so they can study it, learn from it, and, perhaps …

  1. DarkwavePunk Silver badge

    Ahead of its time

    Z-machine was a marvel of design. Such a clever solution with the limited resources of the day. So many fond memories.

  2. HalfManHalfBrisket

    Time passes ...

    Thorin sits down and starts singing about gold.

  3. ecarlseen

    I member.

    Getting stuck in Infocom games in the pre-Internet-at-home era, I reverse-engineered ZIL to a certain extent and wrote a program (in x86 assembly!) to let me view and search the strings.

    1. DarkwavePunk Silver badge

      Re: I member.

      I was lucky enough to have a hex editor. Searching through gibberish looking for something that might possibly be a string was a rite of passage. Beer for you regarding the assembly. Me too dumb.

      1. ecarlseen

        Re: I member.

        ZIL used this crazy 8-bit to 5-bit (with shifts!) compression scheme to cram all of the text onto a single floppy disk, so conventional hex editors were useless for this as it obfuscated all of the text.

        Now I really wish I still had that code. I modeled the UI on the Norton Utilities, and IIRC I made it look pretty slick for the era.

  4. MarkTheMorose
    Thumb Up

    Adventureland

    ...on the VIC-20, in 20-characters-across-ovision. That was my introduction to text adventures. I was fascinated, but not hooked. I confess that my attention was diverted by the flashy graphics and sounds of action games. I retain a fondness for adventures, though, and will, on that mythic 'one day', sit down and play it through. Then there's the rest of Scott Adams' adventures, and Brian Howarth's, let alone all of Infocom's and Magnetic Scrolls'.

    1. YTC#1

      Re: Adventureland

      Atari 600XL.

      Totally hooked reams (literally) of notes (so could start from scratch), got to the end and was 5 points short.

      Never played it again

      1. keithpeter Silver badge
        Windows

        Re: Adventureland

        Mihály Csíkszentmihályi is waving.

        Need to have the difficulty arranged so not too hard to discourage players and not too easy so players get bored.

        Has reference to teaching as well as it happens.

    2. DarkwavePunk Silver badge

      Re: Adventureland

      VIC-20. I never finished Voodoo Mansion. Bloody hell that parser was the worst I've ever seen in a text adventure. Tried playing it again in an emulator some time time ago. Not worth the high blood pressure.

    3. Maximus Decimus Meridius

      Re: Adventureland

      Flashy graphics and sound on a Vic20? You were a Blue Meanies fan weren't you?

      1. theOtherJT Silver badge

        Re: Adventureland

        I was a Gorf man, myself.

        1. Neil Barnes Silver badge

          Re: Adventureland

          If I've remembered both the game and the quote correctly after pushing fifty years: "Some Galactic Commander you make!"

      2. Grunchy Silver badge

        Re: Adventureland

        Vic-20 Omega Race

        C-64 Jupiter Lander

        1. Sudosu Silver badge

          Re: Adventureland

          My fave C64 game was Nukewar by Avalon Hill.

          It was like Battleship, but with an arms race.

          Managed to get it running on Vice emulator on Linux the other day and its still fun to play.

          HOTWAR!HOTWAR!

  5. Jason Bloomberg Silver badge
    Thumb Up

    Original sources

    I believe I still have the original MDL language version of Zork on fan-fold somewhere. Or maybe just blank fan-fold after almost 50 years of storage.

    Thankfully others have been better custodians - https://github.com/MITDDC/zork

  6. Marty McFly Silver badge
    Pint

    Life forming

    Zork & Infocom made an impression on the career I took in life. Think it through...

    These games taught basic troubleshooting. They taught how to define an objective with limited clues to what the objective may be. They taught how to observe and connect pieces together. They taught how to solve ambiguous problems with more than one path to a solution. They taught how to use my imagination to visualize a scene without computer graphics, and if that didn't work they taught how to hand-draw maps for notes. Even at the more basic level they taught me rudimentary typing skills (errr, "keyboarding").

    Reflecting back on everything I have done in tech since then, these fundamental skills have been regularly used for success in my career. I have not adopted any of the modern gaming culture, so I wonder if today's kids get the same skills through modern computing recreation.

    This earns a huge cheers!

    1. Nelbert Noggins

      Re: Life forming

      I think there are quite a few games that teach relevant skills, but rarely the cash cow AAA games.

      Satisfactory and similar go through a whole series of start simple then get more complex as they progress.

      This requires observing what you have, work out how to refactor/optimise it as the game moves along and you need to setup more complex supply chains to build the final item.

      Early on you can get by with the inbuilt tools and paper notes, but it has also spawned online tools to help you find optimal solutions.

      While that is a game that springs to mind because I play it, I’m sure there are plenty more popular modern games that haven’t lost the need to think, plan, solve problems.

    2. doublelayer Silver badge

      Re: Life forming

      There are a lot of games, and while many, and several that are very popular, take the form of how can you shoot the thing that's trying to shoot you, there are ones that do have puzzles and problem solving. I don't play many of them, but I hope they do a better job than the average text adventure and think it's likely they did.

      I too played many of these as a child, but I had a different experience to you. A few of them did have all the things thought through and could take multiple paths, whereas many others were far more limited. I remember many games that would require you to use completely illogical things because you could only break a window with one specific object and they would simply reject any other method you tried, when in real life we know there are many objects that can be used to break window glass. At other times, they taught monotony. I experienced several games where, if you saw a table, you had to enter "search table, search under table, search behind table, search in table, search in table drawer, search under table drawer, search behind table drawer", with a healthy chance that none of those would give you anything, just because there would be one piece of furniture where one of those seven incantations would give you something necessary to winning. This kind of had the opposite problem to the "you can't break the window with the stone statue" problem because that's a realistic difficulty for conducting a real search, but it also made some operations more tedious. That also happened a lot when you had to get information from a character, because you needed the specific topic to ask them about before they'd mention anything.

      Don't get me wrong, I played so many of these because there were some really nice and enjoyable ones. Unfortunately, I gave up on playing more because I had this happen far too often and had several games where I either couldn't find the way to keep going or needed to cheat to do so, and knowing that there's half a story left if I can only find the object that can break a window, but it's none of this collection of heavy objects I've already collected, was frustrating.

  7. Nelbert Noggins

    I never really got on with Zork, don’t know why.

    Did enjoy most of Infocom’s releases.

    Hitch hikers guide was always my favourite… the amount of time spent trying to get that damn babel fish in my ear… :D

    Always thought that has to be one of the most difficult puzzles across all their releases surely :D

    1. RAMChYLD Bronze badge

      That game!

      Took me almost a decade to figure out how to enjoy the Vogon poetry so I can progress further!

    2. Sudosu Silver badge

      Hitchikers was my fav too, but I did like Planetfall a lot.

  8. Anonymous Coward
    Anonymous Coward

    For people who are interested in Infocom ... it is still there ... sort of ...

    http://www.infocom-if.org/index2.html

    Http is not a mistake !!!

    :)

  9. Antron Argaiv Silver badge
    Happy

    XYZZY

    I worked at Data General.

    1. Dwarf Silver badge

      Re: XYZZY

      That was for the original Adventure game - Advent.

      Just remember to put down the staff before picking up the bird.

      I'm just wondering what happens when we stick AI in front of Zork and see if it can play it. AI playing a different generation of AI, or would that just result in a singularity ?

      1. herman Silver badge

        Re: XYZZY

        An AI playing Zork will use so much electricity the whole world will brown out.

      2. ThatOne Silver badge

        Re: XYZZY

        > I'm just wondering what happens when we stick AI in front of Zork

        AI has no curiosity or sense of purpose, so nothing. Besides the game just gives descriptions, it doesn't ask or give specific instructions, so the AI will wait for the game to ask it something, and the game will wait for the AI to initiate some game action, which the AI can't, because those actions are completely out of its universe.

        1. doublelayer Silver badge

          Re: XYZZY

          We can give an LLM instructions to read the descriptions, name an action, and submit it for the next step. That is within their capabilities. It doesn't need to ask a question to do that. I'd expect plenty of unparseable commands, but it will likely be able to make at least some moves. I'm tempted to try this and see what happens.

          Compare it to when an LLM was told to issue commands. It could issue commands without being specifically prompted to, and the problem was that it didn't stop when it needed to and continued to make up valid commands that broke stuff.

          1. ThatOne Silver badge

            Re: XYZZY

            > We can give an LLM instructions to read the descriptions, name an action

            I'm not sure an LLM can visualize the environment suggested and the interactions it allows, and even if, it would not have the imagination required to decide to climb a tree (instead of just walking past it). It won't always know what interactions any given object might allow or require, and it lacks the mental permanence and focus to build a plan and follow it. Don't let their apparent eloquence deceive you, LLMs have the intelligence of a 2-month old toddler...

            The game's possibilities are simply too vast, that's the whole point of that game after all, it requires some creative thinking, something an AI isn't really able to. All it can do is to check "what have others said in a similar situation", which in this context won't get it far.

            An AI could only play if you train it specifically for this game, but then you could as well make a list of all the right prompts and feed them blindly... :-D

            1. doublelayer Silver badge

              Re: XYZZY

              I did not suggest that an LLM could successfully solve a game. I suggested that it could issue valid commands without needing to be prompted each time or to be faced with questions and it wasn't limited to answering questions. That doesn't mean it can come up with the valid commands, and it's likely that it will fail to do so and very quickly. It won't do so in the way or for the reasons you used against it, both of which do not match the models' many weaknesses.

              And before we praise the games too much, we should also consider how limited the command sets actually are for games like this. There are generally two categories of games. One of them uses a small number of verbs you can do to any object, meaning the creative thinking involves thinking which of those are logical ones to use. The other category is ones where the authors defined the commands you have to enter, and LLMs would likely have a lot of trouble with that. However, it was so frustrating and unintuitive to motivated and creative-thinking humans that it got its own idiom, "guess the verb", to indicate how problematic it was. I wouldn't jump to assuming that solving these puzzles is an indicator of intelligence.

            2. Elongated Muskrat Silver badge

              Re: XYZZY

              LLMs have the intelligence of a 2-month old toddler piece of cheese.

              There, FTFY.

          2. RAMChYLD Bronze badge

            Re: XYZZY

            Then it would be like that silly youtube video where someone tries to get Alexa, Siri and Hey Google to engage in a meaningful conversation only for them to get stuck in a circular loop, wouldn't it?

        2. Grunchy Silver badge

          Re: XYZZY

          “AI has no curiosity or sense of purpose, so nothing.”

          Chat GPT couldn’t play any of these games without some additional programming, but IBM programmed Watson to answer in the form of a question well enough to win Jeopardy.

          1. ThatOne Silver badge

            Re: XYZZY

            Indeed, but "programmed to answer" are the key words here. As I said above, you could of course train an AI to play this game, but that would be cheating. Like using a walkthrough cheat sheet.

    2. Ken Shabby Silver badge
      Windows

      Re: XYZZY

      PLUGH, Prime Computer, just down the road.

  10. herman Silver badge

    Hhgg

    BBC4 still has the HHGG game running. Just google for it. You need to make a login, to be able to save the game and you need to save frequently.

  11. BinkyTheMagicPaperclip Silver badge

    There are other adventures too!

    Worth checking out the yearly xyzzy awards for the best interactive fiction. The original Infocom adventures remain obtainable easily via the Internet, or some of them from GOG, and are still fun. I really need to finish completing Enchanter (which I enjoy far more than Zork) without accidentally releasing The Evil One and receiving a score of -1 'Menace to humanity' (I was quite proud of that).

    Inform 7 for modern Z machine based games is.. ok. Personally I don't get on with the 'natural language' because you end up having to use very specific language to drive it. Instead I use Inform 6 (which Inform 7 compiles down to anyway), but also the PunyInform library which if you're careful about the limits also enables creating adventures for old 8 bit systems in addition to modern ones. If you're running a Z80 based system, Vezza is an excellent Z machine interpreter, and you can e.g. run pretty modern interactive fiction games on an Amstrad PCW.

    1. CledusSnow

      Re: There are other adventures too!

      Completed Enchanter and Sorcerer but could never finish the final part of the trilogy - Spellbreaker. Perhaps its time to have another go...it has been 30 years!

  12. Fruit and Nutcase Silver badge
    Joke

    Beware!

    Our goal is simple: to place historically important code in the hands of students, teachers, and developers so they can study it, from it

    In the unlikely event that Larry Ellison reads that and follows suit with the release of the source code for Oracle 1.0, you'll run the risk of being had for lunch by an Oracle auditor

  13. herman Silver badge
    Pint

    HHGG

    The BBC4 still has the HHGG 30th Aniversary game running. Search for 'BBC4 HHGG Login'. Make an account to enable saving the state, since you will die horribly very often. Share and enjoy!

  14. DJV Silver badge

    This article would have been published earlier

    "This article would have been published earlier, but more research was needed"

    Did anyone else read that and immediately be reminded of this?

  15. Liam Proven (Written by Reg staff) Silver badge

    It Is Pitch Dark

    You are likely to be eaten by a grue.

    If this predicament seems particularly cruel,

    consider whose fault it could be:

    not a torch or a match in your inventory.

    https://frontalot.com/lyrics/MC-Frontalot-Lyric-It-Is-Pitch-Dark.html

    https://youtu.be/4nigRT2KmCE?si=DVRvpCI9YPIoQkIq

  16. frankvw Silver badge

    And then there was Sierra

    Sierra' s 3D adventure games ran on their AGI (Adventure Game Interpreter) and later SCI (Sierra Creative Interpreter) that essentially followed the same approach, although by the time they came onto the scene the IBM PC had already begun to take over from the varied home computer market, so their game engines were never ported to different platforms. Yet their approach was definitely "inspired" by the Z-machine.

    1. dirigible

      Sierra was multi-platform for a few years

      AGI games were ported to a lot of non-IBM platforms, King’s Quest had Apple ][ and PC releases in the same year: https://www.mobygames.com/game/122/kings-quest/releases/

      Apple, Atari and Amiga releases were pretty normal 1985-1990:

      https://www.mobygames.com/game/379/leisure-suit-larry-in-the-land-of-the-lounge-lizards/releases/

      https://www.mobygames.com/game/114/space-quest-chapter-i-the-sarien-encounter/releases/

      https://www.mobygames.com/game/146/police-quest-in-pursuit-of-the-death-angel/releases/

      Even some SCI games had releases on Amiga and Atari, but the PC was definitely winning by this time.

      https://www.mobygames.com/game/168/heros-quest-so-you-want-to-be-a-hero/releases/

      https://www.mobygames.com/game/461/the-colonels-bequest/releases/

      The Virtual Machine (not to be confused with today’s VMs) idea was very popluar at that time. Java VM is a later implementation of the concept. Game engines are kind of like that as well: assets and scripts are portable to whatever toaster the engine’s latest port runs on.

  17. Steve Graham

    "Kick the grue." worked at all times. It didn't achieve anything though.

  18. Dimmer

    Learning aid

    My better half is a teacher.

    The 3rd graders needed a way to improve their reading comprehension.

    This did the job. They loved it and their reading levels improved over the other classes.

  19. that one in the corner Silver badge

    Eaten by a grue?

    Well, at least Zork didn't force you to encounter .... the Gazebo!

  20. strayling

    Level 9

    Level 9 did a similar thing for the 8-bit British micros; even the neglected ones like my Oric could run all their adventures. Snowball was particularly good.

  21. Eric 9001
    Unhappy

    I wondered maybe microsoft released free software this time

    But as always, the answer is no.

    Dumping a license file in the root doesn't legally mean anything and the statement in the git log is vague and mentions that trademark restrictions may apply to the software?

    At bare minimum, to license such zork versions as free software, there needs to be a clear statement in the README stating that all files in the repo are licensed under MIT expat regardless of the text in the file (certain files contain; "(c) Copyright 1982 Infocom, Inc. All Rights Reserved.") - microsoft lawyers of course knows this, but as usual, they've chosen not to free it by releasing it as free software - rather as an "open source" project.

    microsoft also doesn't provide the compiler needed to compile a corresponding binary to the binary under COMPILED (has it been lost?) - making those 3 binaries proprietary software.

    The readme notes to use a 3rd party compiler that produces a non-corresponding binary with "minor issues".

  22. Dave Null

    Great move

    Scott H (who is a very nice chap) has an idea that now MS owns Activision, they can do this, he gets a cute Ignite demo and the world gets opensourced Zork. Win win and nice publicity all around. Good move, MS.

  23. Wonderdog
    Trollface

    Missed headline opportunity...

    Should have been "You are likely to be eaten by the GNU"

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon