Tuesday, August 14, 2007

More about the Original Adventure source code

(from the YOU ARE STANDING AT THE END OF A ROAD department)

Hi everyone,

You might have seen this posting on Slashdot (or in my RSS headlines) about the original FORTRAN Adventure source code being found in an archive.

Originally written by Will Crowther, Adventure was the first text adventure game. Most people are familiar with a subsequent version that was expanded and edited by Don Woods.

Long thought lost, Crowther's original source code has been located in a backup of Don Woods' Standford student account from 1977.

Matthew T. Russotto has already translated the PDP FORTRAN to g77 (GNU FORTRAN 77) - which means that most modern gcc installations should be able to compile it.

He has a link here: http://www.russotto.net/~russotto/ADVENT/

I've gone ahead and compiled it on my PlayStation 2 Linux box (mips binary) - and on my laptop under Cygwin (x86 binary). I've never used GNU FORTRAN before - very interesting. I might have to peep the source code a bit - last time I used FORTRAN was in 1983 in college.

In the meantime,

$ ./advf4-11.exe
PAUSE INIT DONE statement executed
To resume execution, type go. Other input will terminate the job.
go
Execution resumes after PAUSE.
WELCOME TO ADVENTURE!! WOULD YOU LIKE INSTRUCTIONS?

yes
SOMEWHERE NEARBY IS COLOSSAL CAVE, WHERE OTHERS HAVE FOUND
FORTUNES IN TREASURE AND GOLD, THOUGH IT IS RUMORED
THAT SOME WHO ENTER ARE NEVER SEEN AGAIN. MAGIC IS SAID
TO WORK IN THE CAVE. I WILL BE YOUR EYES AND HANDS. DIRECT
ME WITH COMMANDS OF 1 OR 2 WORDS.
(ERRORS, SUGGESTIONS, COMPLAINTS TO CROWTHER)
(IF STUCK TYPE HELP FOR SOME HINTS)

YOU ARE STANDING AT THE END OF A ROAD BEFORE A SMALL BRICK
BUILDING . AROUND YOU IS A FOREST. A SMALL
STREAM FLOWS OUT OF THE BUILDING AND DOWN A GULLY.

go east
YOU ARE INSIDE A BUILDING, A WELL HOUSE FOR A LARGE SPRING.
THERE ARE SOME KEYS ON THE GROUND HERE.
THERE IS A SHINY BRASS LAMP NEARBY.
THERE IS FOOD HERE.
THERE IS A BOTTLE OF WATER HERE.



Cheers,
Paul

2 comments:

Anonymous said...

XYZZY!

Anonymous said...

This is great info to know.