Prevent tampering with PRNG parameters in save
[open-adventure.git] / history.adoc
1 = A brief history of Colossal Cave Adventure =
2 by Eric S. Raymond
3
4 Adventure is the fons et origo of all later dungeon-crawling computer
5 games, the grandaddy of interactive fiction, and one of the hallowed
6 artifacts of hacker folklore.
7
8 The very first version was released by Crowther in 1976, in FORTRAN on
9 the PDP-10 at Bolt, Beranek, and Newman. (Crowther was at the time
10 writing what we could now call firmware for the earliest ARPANET
11 routers.) It was a maze game based on the Colossal Cave complex in
12 Kentucky, including fewer of the D&D-like elements now associated with
13 the game.
14
15 Adventure as we now know it, the ancestor of all later versions, was
16 released on a PDP-10 at the Stanford AI Lab by Don Woods in 1977
17 (some sources, apparently erroneously, say 1976). That version is
18 sometimes known as 350-point Adventure.
19
20 Between 1977 and 1995 Crowther and Woods themselves continued to work
21 intermittently on the game. This main line of development culminated
22 in the 1995 release of Adventure 2.5, also known as 430-point Adventure
23
24 The earliest port to C was by Jim Gillogly under an early Unix running
25 at the Rand Corporation in 1977; this version was later, and still is,
26 included in the BSD Games collection.  I have it from Don Woods directly
27 that "[Jim Gillogly] was one of the first to request and receive a copy 
28 of the source" but that Woods did not actually know of the BSD port
29 until I briefed him on it in 2017.  (This contradicts some implications
30 in third-party histories.)
31
32 Many other people ported and extended the game in various directions.
33 A notable version was the first game shipped for the IBM Personal
34 Computer in 1981; neither Crowther nor Woods nor Gillogly were paid
35 royalties.
36
37 The history of these non-mainline versions is complex and
38 murky. Functional differences were generally marked by changes in the
39 maximum score as people added puzzles and rooms; however, multiple
40 ports of some versions existed - some in FORTRAN, some in C,
41 some in other languages - so the maximum point score is not
42 completely disambiguating.
43
44 Same articles at <<DA>> are a narrative of the history of the game.
45 There is an in-depth study of its origins at <<SN>>.  Many versions
46 are collected at The Interactive Fiction Archive <<IFA>>; note however
47 that IFA's historical claims are thinly sourced and its dates for the
48 earliest releases don't match either comments in the code or the
49 careful reconstruction in <<SN>>.
50
51 An attempt to untangle and document a lot of the non-mainline history
52 has been made by Arthur O'Dwyer at <<QUUX>>.  For our purposes, it
53 will suffice to explain the chain of provenance that led from the
54 original Adventure to the Open Adventure distributed with this
55 document.
56
57 The original 350-point ADVENT on the PDP-10 had been one of my
58 formative experiences as a fledgling hacker in 1976-77. Forty years
59 later, in February 2017, while doing some casual research into the
60 history of text adventure games, I looked through some source code at
61 <<IFA>> and was delighted to learn of Adventure 2.5, a version of the
62 Crowther-Woods mainline later than I had ever played.
63
64 Adventure 2.5 had been shipped long enough ago that today's conventions of
65 open-source licensing were not yet fully established. The Makefile
66 contained a rights reservation by Don Woods and that was it.
67
68 I wrote to Don asking permission to release 2.5 under 2-clause BSD;
69 he replied on 15 May 2017 giving both permission and encouragement.
70
71 Here is what Don said about differences between the original Adventure
72 and 2.5:
73
74 ............................................................................
75 > The bulk of the points come from five new 16-point treasures.  (I say "bulk"
76 > because I think at least one of the scores included some padding and I may
77 > have tweaked those.)  Each of the new treasures requires solving a puzzle
78 > that's definitely at the tricky end of the scale for Adventure.  Much of the
79 > new stuff involves trying new directions and/or finding new uses for stuff
80 > that already existed; e.g. the forest outside is no longer a small number of
81 > locations with partially random movement, but is a full-fledged maze, one
82 > that I hope has a character different from either of the previous two.
83
84 > As the text itself says, V2.5 is essentially the same as V2, with a few more
85 > hints.  (I think I came up with a better one for the endgame, too.)  I don't
86 > seem to have a copy of the similar text from V2, so I don't know whether/how
87 > it described itself to new and seasoned players.
88
89 > The other big change, as I mentioned above, was I added a way of docking
90 > points at a certain number of turns.  This was my second attempt to do what
91 > the batteries had been for: require being efficient to achieve top score.
92 > Alas, the batteries led to players deliberately turning the lamp off/on
93 > whenever they weren't moving or were in a lit area, making the game take
94 > even longer!  I set the requirement at what felt like a hard but fair
95 > number of turns, then applied several sneaky tricks to shave off another
96 > twenty.
97 >
98 > I hacked up a wrapper around the game (still in Fortran, most likely, but
99 > I forget) that would try each initializing the RNG using each second of a
100 > given day, while feeding in a script that either worked or aborted early
101 > if anything went wrong (such as a dwarf blocking my path).  As I recall,
102 > it took less than a day's worth of RNG seeds to find one that worked.
103 >
104 > I verified my script could work given a favorable RNG, and stuck
105 > that number in the message.
106
107 > I like how that final puzzle, unlike the game itself, does not readily
108 > succumb even given access to the game source.  You really need to fit
109 > together not only the goals and the map and use of inventory space, but
110 > also details like just what _can_ you do in the dark...?
111 ............................................................................
112
113 == Earlier non-influences ==
114
115 There is record of one earlier dungeon-crawling game called "dnd",
116 written in 1974-75 on the PLATO system at University of Illinois
117 <<DND>>.  This was in some ways similar to later roguelike games but
118 not to Adventure.  The designers of later roguelikes frequently site
119 Adventure as an influence, but not dnd; like PLATO itself, dnd seems
120 not to have become known outside of its own user community until
121 rediscovered by computer historians many years after Adventure
122 shipped.
123
124 There was also Hunt The Wumpus <<WUMPUS>>, written by Gregory Yob in
125 1972. There is no evidence that Yob's original (circulated
126 in BASIC among microcomputer enthusiasts) was known to the ARPANET-
127 and minicomputer-centered culture Crowther and Woods were part of
128 until well after Adventure was written.
129
130 (I was a developer of the Nethack roguelike early in that game's
131 history, in the late 1980s; we knew nothing of PLATO dnd.  We did know
132 of Hunt The Wumpus then from its early Unix port, but it didn't
133 influence us either, nor in any apparent way the designers of other
134 early roguelikes. After my time the wumpus was included as a monster
135 in Nethack, but this was done in a spirit of conscious museumization
136 after historians rediscovered Yob's game.)
137
138 Neither of these games used an attempt at a natural-language parser
139 even as primitive as Adventure's.
140
141 == Sources ==
142
143 [bibliography]
144
145 - [[[IFA]]] http://rickadams.org/adventure/
146
147 - [[[DA]]] http://www.filfre.net/sitemap/
148
149 - [[[SN]]] http://www.digitalhumanities.org/dhq/vol/1/2/000009/000009.html
150
151 - [[[DND]]] https://en.wikipedia.org/wiki/Dnd_(video_game)
152
153 - [[[WUMPUS]]] https://en.wikipedia.org/wiki/Hunt_the_Wumpus
154
155 - [[[QUUX]]] https://github.com/Quuxplusone/Advent