Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
Is that the language in which the text adventures of Zork et al. were written?

Not Zork, but a great many of the modern classics in the same genre: _Curses_, _The Meteor, the Stone, and a Long Glass of Sherbet_, _Spider and Web_, _Christminster_, _Delusions_, and so on and so forth. There is also a clone of _Adventure_ (the cave game that inspired Zork), though the original was written in Fortran I think.

Zork itself (and the other Infocom games) were written using a language and a compiler that AFAIK no longer exist. It is said to have been similar to MDL. Do a Google Groups search for the word "zil" in the group for more information. You will have to wade through some repetition and a lot of people asking questions to which there are few answers, but there is also some real information and a short code snippet or two.

However, when Activision went back and produced _Zork: The Undiscovered Underground_ (to re-awaken interest in the Zork series, since they were also doing a graphical game set in the same universe), they used Inform, since the language used for Zork had been lost.

And, as the other pointer mentioned, Inform can compile to the virtual machine that Zork used, which is probably the second-most widely portable format after ASCII; the games can be played on anything from thirty-year-old mainframes to certain brands of pocket calculators (really). It is one of the few things that can be objectively said to definitely be more portable Perl. (Inform also compiles to another VM called glulx, which is newer and has less historical significance.)

sub H{$_=shift;while($_){$c=0;while(s/^2//){$c++;}s/^4//;$ v.=(' ','|','_',"\n",'\\','/')[$c]}$v}sub A{$_=shift;while ($_){$d=hex chop;for(1..4){$pl.=($d%2)?4:2;$d>>=1}}$pl}$H= "16f6da116f6db14b4b0906c4f324";print H(A($H)) # -- jonadab

In reply to Re: Pointers on working with another language's syntax by jonadab
in thread Pointers on working with another language's syntax by jonadab

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2023-12-06 20:52 GMT
Find Nodes?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?

    Results (31 votes). Check out past polls.