Gaming Mechanics & Design Codexery

Interactive fiction

Text-based software simulating environments for player interaction.

Interactive fiction

Interactive fiction (IF) is software that creates simulated worlds where players type text commands to control characters and affect their surroundings. These works can be seen as literary narratives—either interactive narratives or interactive narrations—and also as a type of video game, specifically adventure games or role-playing games. In everyday use, the term usually means text adventures, a kind of adventure game where the interface may be entirely text-based. However, graphical text adventures that include still images, animations, or video are still considered text adventures if typing text remains the primary way to interact. Some people draw a line between "interactive fiction," which is puzzle-free and story-driven, and "text adventures," which emphasize puzzles.

Because text adventures rely only on text, they avoided the challenge of adapting to different graphics systems. This made them easy to transfer across all major platforms of their time, including CP/M, a system not known for gaming or strong graphics. The number of interactive fiction works continues to grow steadily, thanks to an online community that creates new ones using freely available development tools.

The term "interactive fiction" can also describe literary works that aren't read linearly, such as gamebooks, where readers make choices at various points in the text that determine the story's flow and ending. The most famous example is the Choose Your Own Adventure book series, and the collaborative "addventure" format has also been called interactive fiction. The term is sometimes used for visual novels, a type of interactive narrative software popular in Japan.

Text adventures are among the oldest computer games and belong to the adventure genre. Players control the game by typing text, and the game responds with text output. Interactive fiction usually involves reading from a screen and typing input, though text-to-speech synthesizers let blind and visually impaired users play these titles as audio games.

Player input typically comes as simple sentences like "get key" or "go east," which a text parser interprets. Parsers vary in sophistication; early ones could only handle two-word verb-noun pairs. Later parsers, such as those built on ZIL (Zork Implementation Language), could understand full sentences. Modern parsers can handle complex commands like "open the red box wit

field
Software, video games, literature
known_for
Text-based interactive narratives and adventure games
key_characteristic
Player uses text commands to control characters and influence environment

Lore & Background

Interactive fiction emerged from early natural language processing programs such as ELIZA (1964–1966) and SHRDLU (1968–1970), which took user input and responded conversationally. Around 1975, Will Crowther wrote Adventure (also called Colossal Cave Adventure), a text-based cave exploration game simulating part of Mammoth Cave with fantasy elements. Don Woods expanded Crowther's source code in 1977, adding Tolkien-inspired elements. Adventure spread across ARPAnet and was later included with MS-DOS 1.0. Its popularity led to wide success of interactive fiction in the late 1970s.

Interactive fiction typically relies on reading from a screen and typing input, though text-to-speech synthesizers allow blind and visually impaired users to play as audio games. Input is usually simple sentences like 'get key' or 'go east'.

Reader's Guide

Interactive fiction holds significance as one of the oldest types of computer games and a subset of the adventure genre. Its text-only nature allowed it to sidestep problems of writing for divergent graphics architectures, making it easily portable across platforms including CP/M. The number of interactive fiction works is increasing steadily, produced by an online community using freely available development systems. The term also applies to non-linear literary works like gamebooks, such as the Choose Your Own Adventure series, and to visual novels popular in Japan. Interactive fiction's legacy includes influencing later adventure games and MUDs, and its community continues to produce new works that challenge assumptions about narrative and player identity. The medium's focus on text parsing and narrative has made it accessible to blind and visually impaired users via text-to-speech, and its experimental forms push the boundaries of interactive storytelling.

Did You Know?

The Evolution of the Text Parser

The parser sits at the heart of interactive fiction's technical identity. Early text adventures could only interpret rudimentary two-word commands—verb-noun pairs like "get key" or "go east." Over time, parser technology grew considerably more sophisticated. Systems built on ZIL, the Zork Implementation Language, introduced the ability to understand complete sentences rather than just atomic pairs. Modern parsers can now process layered, multi-clause instructions such as "open the red box with the green key then go north," and this level of linguistic complexity is now considered the baseline standard for the medium. This progression from rigid, mechanical input to something approaching natural language reflects a broader philosophical shift in how designers understood the player's relationship to the text. The parser is not merely a technical component; it is the gateway through which the player's intent translates into narrative consequence, and its evolution mirrors the maturation of interactive fiction as both a literary and a ludic form.

Illogical Space and the Maze Controversy

Despite having no graphical representation, interactive fiction has always maintained a physical dimension, with players navigating between rooms. Early titles proudly advertised their total room count as a measure of gameplay depth. What made these spaces truly distinctive was their capacity for illogical geometry: a player might travel north from one area into another, yet heading south from that second area would not return them to the first. These non-Euclidean mazes forced players to maintain their own hand-drawn maps, since the spatial logic defied real-world expectations. In the era of 3D gaming, such spaces have become exceedingly rare. The interactive fiction community has largely turned against the maze as a design tool, viewing it as an arbitrary "puzzle for the sake of puzzles" that, in the hands of inexperienced designers, produces immense frustration rather than genuine challenge. This cultural shift reflects a broader maturation of the medium's design philosophy, moving away from spatial trickery toward more meaningful narrative and puzzle integration.

The Voice of "You" and Narrative Identity

Interactive fiction operates with two distinct writing modes: the player's imperative commands and the game's descriptive responses. The game's output is conventionally rendered in second person, present tense, because the protagonist is closely tied to the player and events unfold in real time as the player acts. Older titles often identified the protagonist with the player outright, while newer works tend to give the character a separate, well-defined identity. The classic essay "Crimes Against Mimesis" grapples with the philosophical weight of "You" in this context. Humor-forward titles like Zork, The Hitchhiker's Guide to the Galaxy, and Leather Goddesses of Phobos adopted an informal, sometimes sarcastic tone when addressing the player. Douglas Adams, designing the IF adaptation of his own novel, crafted a unique final-puzzle solution requiring the one item the player had not chosen at the start. Some experimental works abandon second person entirely, adopting first person or even casting the player as an inanimate object, a force of nature, or an abstract concept, pushing the boundaries of self-identification in narrative.

Portability, Community, and the Growing Canon

The text-only nature of interactive fiction conferred a remarkable practical advantage in the early days of computing: by sidestepping the need to write for widely divergent graphics architectures, IF games could be easily ported across virtually every popular platform of the era, including CP/M, a system not particularly known for gaming or graphical capability. This universality helped the medium reach a broad audience long before graphical standards converged. Today, the number of interactive fiction works continues to grow steadily, driven by an active online community that produces new titles using freely available development systems. The term "interactive fiction" has also broadened beyond software to encompass printed gamebooks like the Choose Your Own Adventure series, collaborative "addventure" formats, and even visual novels popular in Japan. This expanding definition reflects the medium's enduring influence on how audiences engage with narrative, whether through a terminal, a paperback, or a screen.

Frequently Asked Questions

What is interactive fiction in gaming terms?

Interactive fiction is a genre of software that builds a simulated world where you type text commands to direct a character and shape the environment around them. It occupies a unique space that overlaps software, video games, and literature simultaneously.

How do you actually play interactive fiction?

You read descriptive prose on screen and type short commands—like 'go north' or 'take lamp'—to act within the world. The system replies with updated descriptions and consequences, and the narrative advances based on your choices.

Is interactive fiction the same thing as a text adventure?

In everyday usage, most fans treat the two terms as interchangeable for text-based adventure games. Technically, IF is the broader umbrella that also covers interactive narrations and can include still images, animations, or video as long as typing remains the primary input method.

Why is interactive fiction considered both a game and a literary form?

Mechanically it functions as an adventure or role-playing game with objectives, player agency, and cause-and-effect systems. Structurally, the written prose and narrative arc place it squarely in the tradition of interactive literature, making it a hybrid medium.

What sets interactive fiction apart from other adventure games?

The defining trait is that typed text commands are the core way you interact with the world, rather than pointing, clicking, or using a gamepad. Even when graphical elements like images or animations are present, the act of typing actions is what distinguishes IF from typical graphical adventure titles.

More in Gaming Mechanics & Design 1-17

Spotted an error? Know more?

This is a living reference — every entry is fact-audited, and reader corrections feed straight into our audit queue. Suggest an edit · See this site's audit record

Comments

Loading…
Open in the interactive codex →