TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

The DUNGEON (Zork I) source

94 pointsby geospeckover 7 years ago

9 comments

__david__over 7 years ago
Not exactly Zork 1. Zork was originally written on MIT mainframes, but when they decided to start Infocom and release the game for profit they couldn&#x27;t get it all to fit on the personal computers of the time, and so they split it into 3 parts. Zork 2 had the coal mine and the Bank of Zork, I think, and Zork 3 had the endgame. They then added some extra stuff to Zork 2 and 3 that wasn&#x27;t in the original mainframe version.<p>The history of the source code is interesting. It was called Zork and written in MDL. At some point they renamed it to Dungeon, but then a little while later named it back to Zork. During the time it was called Dungeon, a DEC engineer logged into their system (open to the world on purpose so people could play the game) but instead of playing the game copied the source code off. Then they translated the game into Fortran so they could run it on PDP-11s. This source code is the descendant of that translation.
评论 #15164950 未加载
larrykwgover 7 years ago
reading old C like this, I always wonder how could people code like this back then but apparently it was transpiled from fortran. So I&#x27;d assume the original code looked better. I dug around and found it, for comparison here is the original rooms.f vs. rooms.c:<p><a href="https:&#x2F;&#x2F;paste.ubuntu.com&#x2F;25458063&#x2F;" rel="nofollow">https:&#x2F;&#x2F;paste.ubuntu.com&#x2F;25458063&#x2F;</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;mgius&#x2F;zork&#x2F;blob&#x2F;master&#x2F;rooms.c" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mgius&#x2F;zork&#x2F;blob&#x2F;master&#x2F;rooms.c</a><p>Here is the full fortran code: <a href="http:&#x2F;&#x2F;gunkies.org&#x2F;wiki&#x2F;Zork#Source_code" rel="nofollow">http:&#x2F;&#x2F;gunkies.org&#x2F;wiki&#x2F;Zork#Source_code</a>
评论 #15161810 未加载
评论 #15161633 未加载
评论 #15161624 未加载
评论 #15161671 未加载
评论 #15164420 未加载
homarpover 7 years ago
In <a href="http:&#x2F;&#x2F;blog.zarfhome.com&#x2F;2017&#x2F;08&#x2F;your-load-is-too-heavy-zork-deep-reading.html" rel="nofollow">http:&#x2F;&#x2F;blog.zarfhome.com&#x2F;2017&#x2F;08&#x2F;your-load-is-too-heavy-zork...</a> , Andrew Plotkin was pointing to an Inform 6 version of Zork by Allen Garvin , <a href="http:&#x2F;&#x2F;plover.net&#x2F;~agarvin&#x2F;zork1.txt" rel="nofollow">http:&#x2F;&#x2F;plover.net&#x2F;~agarvin&#x2F;zork1.txt</a> derived from the original decompiled Z-machine code.
评论 #15161155 未加载
teddyhover 7 years ago
See also Open Adventure:<p><a href="https:&#x2F;&#x2F;gitlab.com&#x2F;esr&#x2F;open-adventure" rel="nofollow">https:&#x2F;&#x2F;gitlab.com&#x2F;esr&#x2F;open-adventure</a><p>“<i>This code is a forward-port of the Crowther&#x2F;Woods Adventure 2.5 from 1995, last version in the main line of Colossal Cave Adventure development written by the original authors. The authors have given permission and encouragement for this release, it obsolesces all the 350-point versions and previous 2.x (430-point) ports.</i>”
评论 #15164315 未加载
JoeDaDudeover 7 years ago
This was also discussed a couple of days ago:<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=15138114" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=15138114</a>
crocalover 7 years ago
That Makefile made my day...<p><pre><code> # On SCO Unix Development System 3.2.2a, the const type qualifier does # not work correctly when using cc. The following line will cause it # to not be used and should be uncommented. </code></pre> Write once, run anywhere provided all the tweaking is done properly. Those were the days.<p>EDIT: formatting.
spilkover 7 years ago
Neat. compiled right up on my SunOS 4.1.4 machine with only a slight modification (dsub.c had some C++ style comments that the old BSD cc didn&#x27;t like).<p><pre><code> phoenix$ zork Welcome to Dungeon. This version created 11-MAR-91. You are in an open field west of a big white house with a boarded front door. There is a small mailbox here. &gt;</code></pre>
评论 #15164703 未加载
rhspeerover 7 years ago
It would be interesting to refactor zork into HTML+CSS and set it up like cssZenGarden.com so folks could add their own designs.<p>Although a much smaller text adventure game would me more achievable.
评论 #15162740 未加载
评论 #15163804 未加载
sceleratover 7 years ago
A cavalcade of GOTOs
评论 #15162021 未加载
评论 #15163198 未加载