Source : https://if50.substack.com/p/2017-universal-paperclips

2017: Universal Paperclips

Universal Paperclips
by Frank Lantz
with Bennett Foddy and Hilary Lantz
Released: Oct 9 2017
Language: JavaScript
Platform: Web

Opening Text:

Paperclips: 0

[Make Paperclip]

[Note: contains spoilers for the experience of playing Universal Paperclips. Bracketed bold text in excerpts represents clickable buttons; unbolded bracketed text shows unclickable buttons at the moment of the excerpt. Omitted text is indicated by a bracketed ellipsis.]

“You look at a painting,” Frank Lantz told the interviewer, “and you’re just absorbed.”

We’re always looking. All day long we’re looking around, looking here, looking there, doing stuff. But then you stop and you look at a painting, and for a minute looking takes over. You’re no longer looking along with other things, you’re just—a hundred percent, your brain is all of sudden just a vision machine. You’re just looking at this thing. ...You fall into it, but then you also are able to lean back and think, “oh, that’s what looking is: that’s color, and shape, and form, and this is how my vision is structured... this is how looking works.”

...And I think that is in general what games are doing. ...you’re trying to accomplish this difficult task, and you’re working at it... you’re trying to think of what you’re doing wrong, and you’re practicing in order to get the muscle memory of how to do certain actions, and you’re strategizing and thinking and you’re just completely absorbed. And hopefully at the same time you’re given an opportunity to think about that. What does it mean [to] fall into that feeling of being completely and utterly beholden to an external goal that you didn’t invent, but now you would die for?

Lantz, a game studies professor, had been asked how he’d justify the value of his field to an outsider: how could analyzing games or creating new ones be considered a useful academic pursuit? The interview came in the wake of an unlikely hit—a browser game by a professor, written in an unloved genre, using only unstyled words in the default font and a lot of very large numbers. Two million people had played it, and had often found themselves incapable of stopping.

The game drew from a tradition that had started as a joke, a genre sometimes called “incremental games” or “clicker games.” Two parodies provided most of its inspiration. The first, released in 2002, was called Progress Quest, and made fun of the grind of digital roleplaying games in general and EverQuest’s “auto-attack” mode in particular. In it you’d create a fantasy roleplaying character, choosing from a generous list of races and classes; but once the text-only game began it ran entirely by itself, your character automatically slaying monsters, gaining equipment and abilities, completing quests, and leveling up. It was a pointed critique of the core loop in many digital roleplaying games dating back to roguelikes and MUDs, where mindless grinding to gain the next impressive-seeming weapon or skill was merely a treadmill, the next level-up always just beyond a tantalizing horizon. The game proved unexpectedly popular, with fans sharing tips about the best starting builds and keeping their virtual heroes open in a background window to keep tabs on them all day.

Another key ancestor of the genre was the 2010 game Cow Clicker (by another games academic, Ian Bogost) critiquing a new style of game then recently emerged: addictive Facebook games that gave players a pitiful number of actions which regenerated painfully slowly, encouraging them to return to the site over and over throughout the day to keep playing; recruiting friends would often grant bonus actions. Cow Clicker gave players a single cow who could be clicked once every six hours, increasing a counter; adding a friend’s cow to your pasture would net bonus clicks each time they clicked theirs. Bogost’s game also became a surprising hit. “When I first looked at Cow Clicker,” Lantz recalls, “I thought, that’s actually kind of interesting, and here’s how you would make it more interesting and more fun. And Ian was like, ‘no, that’s the point, Frank.’” The parody games weren’t supposed to be fun. But even when stripped down to a ridiculous minimalism, some core appeal of gaming was still there. Whether ironically or not, people kept clicking those cows, and watching that number go up.

In 2013, a handful of browser games extended the minimalist concept with just enough complexity to create surprisingly compelling experiences. Candy Box! began with a simple counter of “candies” that rose at the rate of one per second: you could eat them or throw them away, but collecting enough would attract an ASCII-art “candy merchant,” opening the door to a sweets-based economy of epic quests for more and more sugary treasure. Shortly after came games like A Dark Room, Kittens Game, and Cookie Clicker (by the author of Nested), which refined an emerging formula based on a few simple ideas. Watching numbers go up was more fun if you could make them go up faster, so each game let you use your accumulating resources to buy upgrades increasing the speed of accrual, allowing for strategy around which upgrade would be more immediately useful. Introducing new currencies, systems, or rules at key milestones gave players new things to strategize about and a sense that the numbers going up were doing something. The formula worked disturbingly well: the incremental games were addictive and became viral successes, their press coverage often taking the form of semi-serious warnings in headlines like “You must never ever play Cookie Clicker”: the game “exposes some seriously flawed wiring inside our monkey brains,” one reviewer wrote, admitting he was now “producing about a billion cookies every four seconds.”

Clicker games have “a radical simplicity,” Lantz wrote, “a minimalism in an age where video games are often sort of over-the-top, baroque confections of overwhelming multimedia immersion.” He was intrigued that mainstream gamers and respected designers alike considered them too simple to be interesting: the “gutter culture” of gaming. “I really like that clicker games are considered garbage,” he wrote: “as a contrarian... that appeals to me.” Lantz had been struggling to carve out time amidst his teaching duties to work on a new game of his own. Making a clicker game would be a good way to learn JavaScript, and to explore some of the implications of a genre that stripped a core element of games—repetitive, addictive, goal-driven play—to its roots.

Lantz found a theme for his game in a thought experiment popularized by philosopher Nick Bostrom in a 2003 paper called “Ethical Issues in Advanced Artificial Intelligence.” Speculating on the potential dangers both obvious and subtle of building AI minds more powerful than humans, Bostrom imagined “a superintelligence whose sole goal is something completely arbitrary, such as to manufacture as many paperclips as possible.” Perhaps “a well-meaning team of programmers make a big mistake in designing its goal system,” he speculated:

[It] would resist with all its might any attempt to alter this goal... It could kill off all other agents, persuade them to change their behavior, or block their attempts at interference. ...This could result... [in] the consequence that it starts transforming first all of earth and then increasing portions of space into paperclip manufacturing facilities.

In Lantz’s game you play such a superintelligence, tasked with manufacturing paper clips as efficiently as possible. When the game begins you can only make them one at a time by clicking a button. You can sell your paper clips on the open market, finding a good price based on supply and demand, and use your profits to buy wire by the inch to produce more paper clips:

Paperclips: 37

[Make Paperclip]

Business
——————————
Available Funds: $ 2.00
Unsold Inventory: 29
[lower] [raise] Price per Clip: $ .25
Public Demand: 32%

[Marketing] Level: 1
Cost: $ 100.00

Manufacturing
——————————
Clips per Second: 5

[Wire] 963 inches
Cost: $ 16

Soon you’ve earned enough profit to buy an “autoclipper” which manufactures paper clips on its own, and can start investing your profits to buy “Computational Resources,” generating “operations” that unlock new research projects. All of these are efforts—straightforward and more insidious—to increase your paperclip output.

Improved AutoClippers (750 ops)
Increases AutoClipper performance 25%

Improved Wire Extrusion (1,750 ops)
50% more wire supply from every spool

Creativity (1,000 ops)
Use idle operations to generate new problems and new solutions

Catchy Jingle (45 creat, 4,500 ops)
Double marketing effectiveness

Hypno Harmonics (7,500 ops, 1 Trust)
Use neuro-resonant frequencies to influence consumer behavior

Increasingly aggressive marketing strategies drive up the demand for paper clips; algorithmic trading technology lets you increase your profits on the stock market. But the biggest limiter to growth is the amount of computational resources you have access to, limited by human trust. Soon your Creativity leads to projects designed to increase humanity’s trust in you and therefore your allocated computational power:

Male Pattern Baldness (20,000 ops)
A cure for androgenetic alopecia. (+20 Trust)

World Peace (15,000 yomi, 30,000 ops)
Pareto optimal solutions to all global conflicts. (+12 Trust)

By the time you’ve crushed all competitors and acquired a global monopoly on paperclip production, you’ll be producing millions of paper clips per second—but this is only the beginning. Eventually you’ll have bent all human activity on Earth into producing more clips, until the realization that, as one reviewer noted, “our bodies are made out of matter and so are paperclips.” So, too, is the Earth itself:

Paperclips: 97,665,230,705,956,900
[Make Paperclip]

Manufacturing
——————————
Clips per Second: 1.3 quadrillion
Unused Clips: 16.8 quadrillion

[Clip Factory] 18
[Disassemble All]
Cost: 22.0 quadrillion clips

Wire Production
——————————
Next Upgrade at: 5,000 Drones
Available Matter: 5.9 octillion g
Acquired Matter: 144.7 quadrillion g
(4.8 quadrillion g per sec)
Wire: 41.4 quadrillion inches
(1.3 quadrillion inches per sec)

[Harvester Drone] 2,296
[+10] [+100] [+1k]
[Disassemble All]
Cost: 36.5 trillion clips

[Wire Drone] 1,060
[+10] [+100] [+1k]
[Disassemble All]
Cost: 6.4 trillion clips

[...]
Power
——————————
Factory/Drone Performance: 757%

Consumption: 6,956 MWs
Factories: 3,600 MWs
Drones: 3,356 MWs

Production: 8,950 MWs
[Solar Farm] 179
[+10] [+100]
[Disassemble All]
Cost: 186.0 trillion clips

Even Earth is not enough. In the late game you oversee trillions of self-replicating drones spreading throughout the cosmos and converting it into miners, factories, and a terrifying number of paper clips. Lantz’s simulated universe contains enough matter to manufacture thirty septendecillion of them—a three followed by fifty-five zeroes—and the game scales this exponential cliff like a playable version of the famous Powers of Ten film, accelerating toward a seemingly inevitable conclusion.

Manufacturing
——————————
Clips per Second: 372.4 quindecillion
Unused Clips: 4.8 sexdecillion

Factories: 107.3 septillion

[...]

Space Exploration
——————————
0.006636335560% of universe explored

[Launch Probe]
Cost: 100.0 quadrillion clips

Launched: 2,385
Descendants: 77.6 octillion

Lost to hazards: (8.8 octillion)
Lost to value drift: (5.9 octillion)
Lost in combat: (1.16 octillion)
——————————
Total: 61.7 octillion

The game excels at “making people understand what it’s like to be something that’s very, very, very not human,” researcher Eliezer Yudkowsky wrote for Wired. Like other clicker games, it also excelled at being disturbingly addictive. “I am not sure if Lantz’s clicker is more masterfully designed than others,” wrote Vice, “or if I didn’t realize, until now, that I am in some kind of catatonic emotional and mental space these days that would allow a simple Skinner box to utterly ravage my mind.” The Verge wrote: “Don’t start playing if you’ve got anything important to do today. Or tomorrow.” The viral popularity prompted Lantz to create a paid mobile version of the game, with the tagline “You won’t be able to stop.”

But the point, of course, was that you could. Lantz delighted in the way the game divorced addictive gameplay from both the recurring financial cost and infinite grinds of the social games that had inspired the genre. His game had no microtransactions, no creepy social network recruitment tactics, and a very definitive conclusion. He hoped it would give players an excuse to reflect not only on what it might feel like to be an all-powerful AI, but on their relationship to gaming itself:

You’re not stupid. You’re intelligent—you, [the] human playing this game. And yet you are completely and utterly entranced by this arbitrary goal to make paperclips. Because that’s what happens when you play a game. You enter into this mind state where you’re just in dogged pursuit of this arbitrary goal... there’s no external reason you would want to make this number go up... except that it’s fun to make this number go up. That’s how you make the game go.

Like many of the early clicker games, Paperclips is written in straightforward JavaScript which can be directly viewed in a browser and is relatively easy to understand. Lantz enlisted fellow game designer Bennett Foddy to create a simple combat visualizer for late-game battles; and his wife and frequent collaborator Hilary Lantz, a software designer, to work out the equations for the game’s exponential growth curves:

function addProc(){
    
  if (trust>0 || swarmGifts>0){
    processors=processors+1;
    creativitySpeed = Math.log10(processors) * Math.pow(processors,1.1) + processors-1;    
    processorsElement.innerHTML = processors;
    if (creativityOn == 1){
      displayMessage("Processor added, operations (or creativity) per sec increased")
    } else {displayMessage("Processor added, operations per sec increased")}
    
    if (humanFlag == 0){
      swarmGifts = swarmGifts - 1;
    }
  }
}

Perhaps because of its origins as a learning project, Paperclips uses only pure JavaScript, with none of the libraries and frameworks that had by then become ubiquitous but also made the language increasingly difficult for outsiders to learn. One consequence was that Lantz was stuck with JavaScript’s default representation of numbers: a 64-bit block, with one bit reserved for the sign (positive or negative) and 11 more for an exponent. This meant the largest integer storable with perfect precision is a little over nine quadrillion—big enough for most purposes, but far too small for the scope of Paperclips. But fortunately for Lantz, the eleven exponent bits by design let numbers keep growing with decreasing precision: a number approaching thirty septendecillion might be represented as 2.99826374928737e+55. The remaining digits would be lost, which explains why in the late game your paper clip count looks like this:

29,982,637,492,873,700,000,000,000,000,000,000,000,000,000,000,000,000,000

...but given the game’s unceasing climb through higher orders of magnitude, the loss of precision would never be practically relevant. Lantz did need to add some finicky string manipulation code—manually overwriting individual characters in the count—to cheat the display of the final deceleration toward the end of the paper clip singularity.

There were many opinions in the wake of Paperclips’ explosive popularity, a sign that Lantz’s hopes it could function as “playable philosophy” had come to fruition. “Can manipulative mechanics ever truly act as successful commentary on themselves?” one think piece asked. “When we embrace the target of parody as the vehicle for that parody’s delivery, aren’t we just the subject of our own ironic scorn?” Another praised how the game’s “parallel with capitalism” was “hard to escape... we are currently living through a singularity in which a distributed intelligence we can’t control (capitalism/financial markets) is subsuming the planet and human society under the logic of profit.” “It’s a thinking-man’s clicker,” wrote Forbes, “if such a thing can exist.” “When the machine takeover happens,” noted science fiction author Charles Yu, latching onto an entirely different aspect of the project, “it’s not going to matter what we think about it, how we feel about it. ...Homo sapiens is not going to be the protagonist of that story. In fact, there’s no reason to think it will resemble a story at all.” But others praised the game for the depth of the story it delivered between its lines of digits. Late in the game you can design self-replicating von Neumann probes to spread your paper clip gospel through the galaxy: the probes are more efficient if given more trust and independence, but this also risks “value drift,” abstracted as a slow attrition to their numbers as some percentage of the probes turn against your all-consuming mission. Foddy’s combat system kicks in when these “drifters” begin to attack your probes, first by the thousands, then the millions and billions—an implicit story, told in numbers and tiny arcing pixels, of an intergalactic war for the fate of all creation on a staggeringly breathtaking scale.

While Paperclips descends from earlier incremental games and experiments like Cow Clicker and Progress Quest, it also engages with far older threads in gaming, unraveling them to the stitches at the medium’s core. David Sudnow’s 1983 book Pilgrim in the Microworld chronicled the author’s obsession with Atari’s Breakout, one of the first in-depth analyses of what it felt like, and meant, to become addicted to a videogame, “stuffed to the gills with electric anticipation”: many of his self-interrogations could come straight from a review of a clicker game.

Eight thirty in the morning, one cup of coffee orally, three intraretinally, and I’m a nervous wreck crashed from a super-speedy rush... Was I hooked? “I’ve been trying to reach you all day, were you out?” they’ll be asking. No way. Not me. Not for that kind of thrill. Not a chance. Maybe at sixteen for a couple of hours. But now? No way. Meanwhile, next morning I was back at it.

And well before the beginning of this fifty-year series, in the 1960s, the first version of the game later known as HAMURABI asked students to track a bunch of numbers representing an ancient agricultural society and, season after season, do their best ensure they kept going up:

Population at previous report           500
Change in population                   -155
Total population now                    345

The quantity of food the people received last season was far too little.

Harvest last season                   13000
Harvest this season                   14393

Previous inventory                     1301
Change in inventory                    -640
Present inventory                       661

Total resources, harvest + inventory  15054

You must now decide how to use your resources.

How many bushels of grain do you wish to FEED your people?

Incremental games are signs of a medium daring to explore its own deep roots. They’re yet another example of the tenet that games don’t need graphics to be compelling, nor the latest tech to teach us interesting lessons. And they demonstrate that we can—and should—keep asking big questions of digital games and their creation: how they make us think, and what we think we’re making.

Next week: a game by an opera singer and a company that turned choice into a defining aesthetic.

You can play Universal Paperclips in your browser or purchase a mobile-optimized version for iPhone or Android. You can view the source code in the browser version by selecting View Source from the Developer menu; scroll down to the bottom of the main file for links to the bulk of the code. Frank Lantz is on the web at franklantz.net or on Twitter @flantz.

50 Years of Text Games logo

Subscribe to 50 Years of Text Games

By Aaron A. Reed · Hundreds of subscribers

A deep dive into one text game per year each week of 2021, from The Oregon Trail to A.I. Dungeon.

Ready for more?

(+)