r/programming • u/iamkeyur • May 08 '20
Zork source code, 1977
https://github.com/MITDDC/zork19
u/pala_ May 08 '20
7
u/spacechimp May 08 '20
Ha, that led me to this search.
2
u/pala_ May 08 '20
Yeah I'm trying to work out a way to shoehorn that into my current work project. Hmm
2
17
May 08 '20
Ah, MDL. Proof that Lisp can be ugly.
21
u/tulliandar May 08 '20
Can Lisp be not ugly?
10
May 08 '20
Absolutely. Scheme that avoids the forms ending with “!” is particularly beautiful, generally speaking.
3
u/phalp May 08 '20
It won't hurt anything if you want to put semicolons at the ends of lines, if that's what you mean.
8
u/larsbrinkhoff May 08 '20
I found, excavated, and decrypted the files
4
u/the_gnarts May 08 '20
Were all the sectors on
100068.tapstill readable?What kind of encryption was used?
6
u/larsbrinkhoff May 08 '20
There are some errors, for example record lengths off by one.
The encryption isn't any standard scheme. It's an ITS program called SCRMBL:
3
u/the_gnarts May 08 '20
Sounds like you had a lot of fun running all kinds of forensic analyses on that old archive.
4
6
u/Philser23 May 08 '20
What language is this written in? These file extensions seem kinda weird
4
u/larsbrinkhoff May 09 '20
The file extensions are version numbers. The ITS file system has versioned files.
4
u/dnew May 09 '20
If you want to see what this eventually evolved into, check out Inform. In the latest versions, the code itself reads like a novel.
There is a room called Kitchen. Kitchen is north of Bedroom. Kitchen contains a cabinet. The cabinet is closed and unlocked. The refrigerator is closed and unlit. The refrigerator is lit when not closed.
It's very cool, really.
2
u/HeadToToePatagucci May 08 '20
Just browsing this source I’m seeing text I don’t remember from playing this on c64 in 1984. Is there a convenient way to play the full original MIT version?
6
u/7981878523 May 08 '20
Get Dungeon for any Unix/BSD.
2
u/larsbrinkhoff May 09 '20
Yes, that would be the closest runnable version. We do have the final MDL source code, but can't run it yet.
2
u/HeadToToePatagucci May 11 '20
Wow Unix is easy these days.
$brew install dungeon ... $dungeon Welcome to Dungeon. This is an open field west of a white house with a boarded front door. There is a small mailbox here.
I remember spending weeks trying to build and install a new version of ksh as a student admin for our cs lab back in the day. Kids these days don’t know how easy they have it.
Well there goes my productivity for a while.
2
1
May 09 '20
Really silly question: Where's the source code? Or is something like this :https://github.com/MITDDC/zork/blob/master/zork/act2.27 the source code? What's that for a programming language, I've never seen it before.
3
u/larsbrinkhoff May 09 '20
Yes, that's source code. It's for the Muddle, or MDL, programming language. It's a Lisp dialect, but uses more angle brackets than round parentheses.
2
46
u/ScrappyPunkGreg May 08 '20
*** YOU HAVE DIED ***