91自拍

Early Frontiers for Computer Creativity: TX-0 Writes a Western

By Chris Garcia | August 23, 2017

A still from Sunspring (2016), created by Oscar Sharp and Ross Goodwin. Image: GeekyTyrant.

A still from Sunspring (2016), created by Oscar Sharp and Ross Goodwin. Image: .

In my other life, I watch a lot of short films, both to coordinate film festivals and for my personal blogs. I鈥檝e probably seen fifteen thousand short films over the last decade, and the level of technical sophistication and artistry in cinematography, editing, sound design, and effects gets more advanced every year. Some films have even given lighting, editing, and camera decisions over to algorithms, like Lars Von Trier鈥檚 The Boss of it All.

In April 2016, filmmaker Oscar Sharp and NYU artificial intelligence researcher Ross Goodwin teamed up to create the short film Sunspring. Goodwin created an AI bot called Benjamin to write the script, and Sharp filmed it as a part of the SCI-FI-LONDON 48 Hour Film Challenge. The resulting short is surrealist science fiction at its trippiest, and after Ars Technica released 颅颅颅it in June 2016, it became a massive hit. It was impressive, but it wasn鈥檛 exactly something new. In fact, the exact same concept had been done before鈥攊n 1960.

The Transistorized EXperimental computer zero, or TX-0, one of the earliest transistor computers. Collection of the 91自拍, 102693338.

The Transistorized EXperimental computer zero, or TX-0, one of the earliest transistor computers. Collection of the 91自拍, 102693338.

In 1960 the Massachusetts Institute of Technology (MIT) celebrated its 100th anniversary. In that first century, many of the most significant figures in the history of computing had passed through MIT as students, professors, or researchers. In honor of the occasion, the CBS television network created Tomorrow鈥擳he Thinking Machine, which celebrated MIT鈥檚 computer and robotics projects, especially MIT鈥檚 most impressive and then-recent creation鈥攖he Transistorized EXperimental computer zero, better known as TX-0.

With a 32 KB of memory and more user-interactive elements than any previous computer, TX-0 was something that MIT could certainly brag about. But demonstrating the technical capabilities of a computer, like TX-0, to a television audience who may have little or no technological knowledge can be difficult. It鈥檚 important to show the capabilities of the machine by using methods and highlighting features that are easily identifiable and relatable so that a deeper discussion about the technology can develop gradually. Often, games or graphics display programs were used during demos to relate to general audiences, but the team at MIT decided to show the TX-0鈥瞫 capabilities via text by producing a film. Doug Ross and Harrison 鈥淒it鈥 Morse developed a program for that could write simple scripts following a set of rules.


Video: The Thinking Machine. Credit: . Film to HD transfer courtesy of MIT 150. MIT Museum Collections.


Preliminary Operating Notes for Saga II, the program that created the scripts for Tomorrow鈥擳he Thinking Machine.

, the program that created the scripts for Tomorrow鈥擳he Thinking Machine.

Genres like science fiction, horror, and Westerns all operate on a system of rules and tropes that are easily mappable. Creating a story in a genre such as a Western isn鈥檛 too difficult, but setting the rules to make those scripts actable is quite difficult. A screenwriter will understand that if a robber enters a room, the gun in his holster comes in with him. That is not the case with a computer. It has to be told that if a character is holding the gun, they keep holding it until they put it down. Morse and Ross accomplished all of this in a program that ran 13,000 lines of code. The ensuing set of film scripts, called Saga, are short, silent Western pieces with two characters and all the markers you鈥檇 expect to see in any Western.

Following a lively discussion between Tomorrow鈥檚 host, David Wayne, and MIT鈥檚 Jerome Wiesner, the head of the electronics research labs, as well as interviews with luminaries such as Claude Shannon, the TX-0 is shown printing the script for an upcoming scene:

The Robber is at the window Go to door Open door Go thru door Close door Go to corner Put money down at corner.

The script is simplistic, but the level of detail is immense compared to what a screenwriter would traditionally write:

ROBBER ROBBER enters, crosses the room, and sets his bags of gold down.

Doug Ross holding the script for a version of Saga created by TX-0.

Doug Ross holding the script for a version of Saga created by TX-0.

Because TX-0 had none of the innate knowledge of the human screenwriter, its script had to be more detailed to deal with each of the components a human writer would consider an individual action. As this playlet goes on, it tells a coherent story鈥攁 robber returns with his money, which he fondles in the corner, drinks a little whiskey, and is then approached by a sheriff who kills the robber in a shoot out. A very basic story, but it fulfills all the rules鈥擜 good guy, a bad guy, gold, a gunfight, whiskey, all of the classic elements of a Western.

Doug Ross wrote the program to create Saga. Collection of the 91自拍, 102631240.

Doug Ross wrote the program to create Saga. Collection of the 91自拍, 102631240.

Doug Ross, who supervised the creation of the program, goes on to explain the process that TX-0 employed to create the script. The flowchart diagram he used shows exactly the possible paths that TX-0 could use to create differing stories; the version that was first filmed is noted as #38, demonstrating that the program was capable not only of creating a single story, but taking even a very limited scenario and creating several possible outcomes. The program was simply a set of rules describing the basic plot elements, another set that described the possible actions, and then a set of rules that could modify the rules, including one that took the robber鈥檚 inebriation from drinking the whiskey into consideration.

Behind the scenes of Saga, the Western written by TX-0. Collection of the 91自拍, 102693340.

Behind the scenes of Saga, the Western written by TX-0. Collection of the 91自拍, 102693340.

The second version featured the robber winning in the end, making the program capable of writing a revisionist Western! The story has the same elements鈥攖he robber enters, fondles his gold, takes a drink, the sheriff enters, there鈥檚 a gunfight, the winner runs off with the gold, and the loser has a drink and then dies. Within that, there are thousands of possible outcomes, though we鈥檙e told only produced about 50 were actually produced.

These first two versions are followed by a third scenario, where TX-0 ends up in a loop. The sheriff puts his gun in the robber鈥檚 holster, then continually drinks from the bottle of whiskey, while the robber repeatedly spins the cylinder of his revolver. A human screenwriter would almost certainly never make that mistake. The segment is one of the best early examples of early computer creativity. Artificial intelligence research into the arts throughout the 1960s and 鈥70s would lead to programs such as Harold Cohen鈥檚 AARON paint system; the poetry-generating system Racter, by William Chamberlain and Thomas Etter; and later the EMI and Emily Howell music generation programs, by David Cope.

Original program chart for Saga.

Original program chart for Saga.

Saga provided an easy-to-understand example of computer programming. It is not difficult to show how the rules used in telling the story are analogous to how programs are created to perform other tasks. Tomorrow鈥擳he Thinking Machine used the Western segment to expose their audience to more abstract programming concepts and that helped to make the computer seem less mysterious, lessening the fear of them.

Sunspring shared many similarities with Saga. They鈥檙e both genre pieces, which allow computer programs to create a narrative within a defined story space. Sunspring used a much more complicated process, and created a full script in traditional screenwriting format, along with the lyrics to a pop song at the end of the film. Saga, though creating shorter pieces and only dealing with the physical actions within the story, was an impressive creative endeavor for 1961, and while work like Boss of it All and Sunspring may be far more advanced in their technological approach, Saga was an important step forward for computer creativity.

91自拍 The Author

Chris Garcia joined the 91自拍 in 1999. As Curator, Chris provides information on artifacts, develops content for exhibits, assists in donation review, gives talks, tours and writes articles for CORE鈥攖he official publication of the Museum. He specializes in the history video games, personal computing, computer music and art, and computers and technology in literature. In his spare time, Chris is a fan of science fiction and edits a number of fanzines, including The Drink Tank (Hugo Award winner, 2011).

Join the Discussion

Share