You can now play Colossal Cave Adventure, the first text adventure game, via SMS (2024)

You can now play Colossal Cave Adventure, the first text adventure game, via SMS (1)

A year or so before you could be eaten by a grue, you could stand at the end of a road before a small brick building, walk inside, and get a lamp. That was the start of Colossal Cave Adventure, the formative text adventure game (and one of the most important games of all time) written for the PDP-10, back when you could call something a minicomputer if it didn't take up a whole room. Colossal Cave is old enough that it could be (and often was) simply called Adventure—in 1976, no other game had laid claim to that word, yet. Programmer Will Crowther wrote an early version of the game as a fantastical take on the Mammoth Cave in Kentucky, and later Don Woods expanded the game with more overt Tolkienesque fantasy.

At first, the game was only playable on the PDP-10, which was still a huge mainframe, even if it wasn't room sized. But soon enough it was ported to other computers like the Commodore 64 and IBM PC, meaning you could play Colossal Cave on a system that fit on your desk. Now that another 35 years or so have passed, you don't even need that: you can play one of the most formative PC games of all time on your phone, via SMS.

All you have to do is text this number: +1 (669) 238-3683.

I recently watched a fun talk by programmer Chris Swenson from the North Bay Python conference, in which he walked through the process of taking the 1977 source code for Colossal Cave Adventure and rewriting it in a modern language to run on a server you can talk to via text message. Here's the talk:

A lot of what Swenson says goes over my head, as the talk is aimed at programmers and I am definitely not one. At one point the crowd gasps and then laughs in disbelief as Swenson explains: "I wanted to store the state because this is going to be running on a web server where someone's going to be textring into, and it's going to have to respond, so it needs to keep all of that structure. So I take the entire interpreter state right here, throw it in a dictionary, and then I pickle it, and compress that, and throw that whole big blob in a postgres database and store it per-user." The vibe I get is that this is extremely improper code etiquette. But hey, it worked!

Other parts of Swenson's talk are a bit easier to follow, and there's something really cool in translating a game as old as Colossal Cave into a more modern programming language. Specifically, Swenson was dealing with FORTRAN IV code, common in supercomputers of the day but unused for decades now. Notably, FORTRAN IV predated the standard of 8 bits in a byte. The PDP-10 was a 36-bit system.

"It was a fun challenge to get this to work at all," he said in the talk. "You can't actually take FORTRAN IV and compile it these days. There's not a compiler. And even if there was one, we don't have a PDP-10 to run it on."

The biggest gaming news, reviews and hardware deals

Keep up to date with the most important stories and the best deals, as picked by the PC Gamer team.

Swenson talked about what it was like to deal with the 36-bit code at about the 11 minute mark, which is probably my favorite part of the presentation. Then he talks about simulating "loading the tape drive" for the PDP-10, which is of course just a text file now.

Swenson's interpreter ended up being more complicated than the original code it was designed to interpret, but efficiency isn't really the goal with a fun project like this one. It was only designed to work for this one piece of software, not all FORTRAN IV code, but it does that job, along with adding some modern touches. Like, well, responding by SMS.

You can now play Colossal Cave Adventure, the first text adventure game, via SMS (2)

If you text +1 (669) 238-3683, the server will respond after a few seconds with the opening spiel of Colossal Cave Adventure:

WELCOME TO ADVENTURE!! WOULD YOU LIKE INSTRUCTIONS?

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.

Near as I can tell, the original code didn't display in all-caps like the Colossal Cave Python bot, but playing it via text is a genuinely cool experience. You can play for a few minutes and simply stop responding, and then come back hours or days later and pick up right where you left off, for as long as Swenson keeps the server running.

If you've never played Colossal Cave Adventure, here are a few command tips to get you started:

Type the first letter of compass directions to move: N, S, E, W. NW, SE, etc.

Try one-word commands like "In," "Exit," "Get," "Drop" to interact.

There are a few other commands, but keep things as simple as possible and use single words. You'll be adventuring in no time.

Wes has been covering games and hardware for more than 10 years, first at tech sites like The Wirecutter and Tested before joining the PC Gamer team in 2014. Wes plays a little bit of everything, but he'll always jump at the chance to cover emulation and Japanese games.

When he's not obsessively optimizing and re-optimizing a tangle of conveyor belts in Satisfactory (it's really becoming a problem), he's probably playing a 20-year-old Final Fantasy or some opaque ASCII roguelike. With a focus on writing and editing features, he seeks out personal stories and in-depth histories from the corners of PC gaming and its niche communities. 50% pizza by volume (deep dish, to be specific).

More about adventure

Embark on a journey through Icelandic folklore in upcoming adventure game Island of WindsStill Wakes the Deep launch trailer sets the scene for a grizzly ship-bound cosmic horror

Latest

TSMC's chairman hints at potential higher prices for Nvidia—'I think those products are really valuable...but I am thinking about showing our value as well'
See more latest►

See comments

Most Popular
New city builder Generation Exile is a shot across the bow for both strategy game design and the gaming industry at large: 'It's simply not possible to keep expanding forever'
Killing Floor 3 looks like essential co-op carnage and I can't wait to jump in with friends
Grab a free month of PC Game Pass here while supplies last (update: they didn't last!)
The 6 biggest reveals at the Xbox Games Showcase
I played Stormgate's new faction with two of the world's top RTS players, but even they couldn't save me from my own ineptitude
Everything we know about Stormgate's angelic Celestial Armada faction
Fill out a quick PC Gaming Show survey for a chance to win a mighty $2,499 iBUYPOWER gaming PC
The 5 best cozy game demos I tried from the Wholesome Games showcase
The biggest announcements and trailers from the 2024 summer gaming showcases
In classic E3 tradition, the cinematic reveal trailer for this new RTS is so cool I wish it was an anime instead of a game
Fighting gamers are eating good: I've never been so happy to see the genre flourishing during Summer Game Fest
You can now play Colossal Cave Adventure, the first text adventure game, via SMS (2024)
Top Articles
Latest Posts
Article information

Author: Zonia Mosciski DO

Last Updated:

Views: 6141

Rating: 4 / 5 (51 voted)

Reviews: 90% of readers found this page helpful

Author information

Name: Zonia Mosciski DO

Birthday: 1996-05-16

Address: Suite 228 919 Deana Ford, Lake Meridithberg, NE 60017-4257

Phone: +2613987384138

Job: Chief Retail Officer

Hobby: Tai chi, Dowsing, Poi, Letterboxing, Watching movies, Video gaming, Singing

Introduction: My name is Zonia Mosciski DO, I am a enchanting, joyous, lovely, successful, hilarious, tender, outstanding person who loves writing and wants to share my knowledge and understanding with you.