[news] [forums] [wiki] [buy] [Steal Real Money]
Changing the direction of the game (and v9 released)
by jasonrohrerFriday, June 14, 2013 [10:57 pm]

Several public releases and several thousand players later, I took a hard look at what The Castle Doctrine had become, and I realized that it had veered off in a troubling, unsustainable direction.

My original goals for the game were as follows.

I wanted to make a game where players generated content, but where that content actually mattered to gameplay. Where that content was the gameplay.

The house design side would naturally be whatever it would be: players would strive to design a house that would keep robbers out in the most effective way possible. Designs would evolve over time as players discovered this or that emergent combination. I always imagined that the house design side of the game would quickly blossom into something beyond what I could imagine, so I didn't spend too much time trying to imagine it (people have built working CPU logic in Minecraft, so the sky is really the limit).


But I had very specific goals for the robbery side of the game. Yes, the robbers would obviously be trying to overcome whatever fiendishness the best homeowners had devised, but they would be able to overcome it tactically. They'd sneak through a darkened house, peering around corners, and pressing their luck. A poke here, a cut there. Trying to find and exploit a weakness in the design. Cutting through in exactly the right spot and finding themselves behind the scenes, exploring the inner workings of the house, like going behind the walls at the end of Portal. With permadeath always one mistake away, this would be a tense experience. But with enough explorative poking and cutting, over multiple scouting trips, any house design would eventually be vulnerable to a successful break-in. "Aha! If I just cut through these wooden walls, snip this wire, and throw this brick across the pit to hit that switch, I can get to the vault."

And that's how I envisioned the two sides interacting. No homeowner would be safe forever. This would be a game about vulnerability and violation. Yes, some would rise to the top, but only for a short time, since being at the top would mean that the attention from robbers would increase. Through skill, opportunism, and some "right place at the right time" luck, a player might rob a few small houses, gaining enough money to buy tools to rob a few bigger houses, and so on, climbing carefully up through the ranks---a kind of meta-layer of tactical gameplay, a Roguelike where the dungeon-tower was built by other players. But they'd get to the top only to be knocked back down by another upstart with less to lose. Then they might climb again, building a house that would prevent the kind of break-in that got them last time. An endless, every-cycling arms race between robbers and homeowners, where the landscape is always changing and no optimum exists for either side.


As owners start building more wood walls, robbers start carrying more saws. Then some smart owner notices this and starts building metal walls. This trend builds, an then robbers start carrying more torches. In response, homeowners might move on to concrete, and robbers explosives. In which case owners would switch to dogs, and robbers to guns, and then back to wood versus saws, or pits versus ladders, or a mixture of dogs and wood versus a mixture of guns and saws.


The system would remained balanced by the fact that both obstacles and tools cost money, and money is scarce. Furthermore, since every homeowner needs to get through their security with no tools at all, every house would have certain vulnerabilities that skilled players could discover and exploit.

Okay, that sounded pretty cool to me! So, I tried to build that game.

It's pretty clear, though, that the current state (v8) of The Castle Doctrine does not match the above vision. So what happened over the past 3 months since the first public release?

Shortly after the initial alpha launch, things were pretty great. Homeowners were trying out this and that, discovering little emergent design combinations, and generally making really cool, clever, and interesting houses. Robbers were sneaking around nervously, poking this and cutting that, and eventually breaking through every house. Wealth and paintings were passing from player to player and different kingpins rose and fell.

But in less than a week, something very big happened. A rather wealth player made some wooden walls that were 9 tiles thick. Since a backpack only has 8 slots in it, and can thus carry only 8 saws, a robber cannot cut through such a wall. At first, this didn't seem like such a big problem. After all, every house has to be solvable without tools (as demonstrated by the owner). So, there's still a way to get to the vault in such a house---just not a way that involves cutting. Of course, the 9-wall-thick idea spread quickly.


Shortly after that, however, something else big happened. A rather clever player devised the first push-button combination lock. 9-tile-thick walls protected the internal logic, and a robber would be faced with pressing the right subset of 16 buttons in order to pass through a 9-door-thick corridor to the vault. Yes, it's possible to reach the vault with no tools. But if you don't know the secret pattern, it might take you 65,536 guesses. This idea also spread quickly.


Shortly after that, someone devised a 22-button combination lock (over 4 million possible combinations to try). This was essentially overkill, though, because the 16-button one was unbreakable, in practice (the top houses had a few hundred attempts, at most). You know, if each attempt takes even as little as one minute, you're looking at 44 days of non-stop, no-sleep trying to break a 16-button combination lock.

Finally, a very clever player figured out how to build an effective combination-style lock for only $1400 by exploiting an electric floor loophole. Given that each player receives $2000, for free, when they start from scratch after permadeath, this meant that unbreakable security was now available to even the least-wealthy players in the game.


A few weeks later, there were pages and pages of houses employing some variation on the combination lock, and they were all sitting there, unbroken. Yes, there were some lovely little innovations along the way, but they were all uncrackable, in practice.

For robbers, the experience of entering such a house involved very little sneaking, poking, or cutting. No tactics were employable. If you were foolish enough to even try, you'd push a few buttons before realizing hopelessness and facing your death (one lovely innovation: pushing any button at all traps you in the house, so you must enter the correct combination, or press nothing at all, to survive). The smarter players would see a combination lock and leave.

Thus, the robbing side of the game degenerated to picking away at the broken or abandoned houses lurking at the bottom of the list, and skipping pages and pages of houses to find them.

From my perspective, players had pushed the game in an interesting and unexpected direction: they were getting so good at the game that they seemed to be designing real locks, tile by tile. Security through puzzles. So this was a puzzle game, after all, and not a tactical game!

I was a little uncertain about this, but there seemed to be no way around it: even if I doubled the backpack size, puzzles would still be possible with 17-thick walls. And making the backpack even bigger than that (like 30, the width of the map) would be unwieldy and also completely subvert house design (if you could plow through any obstacle by cutting, what would be the point of designing a house at all?).

Still, there was a huge problem: hidden information (through limited visibility) meant that practically-impossible puzzles were easy to make.

Amid deep community worries about ruining the game, I thought about ways to reveal this information. I didn't want to spoil the "sneaking around a dark house" feel that the visibility shroud creates, so I wanted a source of information that was separate from the robbing view. Blueprints seemed thematically appropriate: suppose you could study a house design in its entirety, before you even stepped in the door?


Combination locks would be easy to bypass, since you could see the otherwise-hidden logic of their inner workings. But would this ruin puzzles in the game? I knew that the answer to this question was provably "no" through some very dusty memories from computer science classes long ago. Any suitably-powerful formal system can be used to encode expressions from other formal systems. Thus, provably hard-to-solve problems (from logic, for example) could be encoded into Castle Doctrine maps in a way such that reaching the vault on the map would provide a solution to the encoded problem. Essentially, there was no limit to how hard a Castle Doctrine puzzle could be, even with no hidden information.

And sure enough, with the advent of blueprints, top-house puzzle complexity exploded, getting harder as needed. At one point, a house remained at the top of the list for a full week before it was solved. So, the puzzle aspect of the game wasn't ruined by full information. At that point, I realized that puzzles rarely have hidden information, almost by definition. Hidden information turns a puzzle into a trial-and-error guessing game.


But something else happened in response to blueprints: the game world was split in two, with one small portion pushed way up, and the rest of it pushed way down. If you were clever enough to design a really hard puzzle (basically requiring that you be a practicing electrical engineer---even I had trouble doing it), then you could keep people out for a long time and prosper in the game. Everyone else, however, would design a house that would be broken right away through the reveal of its internals. These players, who were also unable to crack the hard houses, had nothing worthwhile to do and left the game. The remaining engineer-type players were secure in their puzzle-fortresses with too much to lose, so they couldn't even risk robbing each other.

Every once in a while, after time passed for sufficient study, one of these top houses would be solved. But doing so required days of painstaking work on the part of the solver. I'm sure those final moments of victory were some of their most exquisite game experiences, but that experience was out of reach for almost everyone, including me (I spent several hours trying to figure out one of the top houses, only to eventually resign to the fact that it was beyond my capabilities).


So, it was clear that something had to change, but what? I could remove this or that feature to limit puzzle design in this or that way, but it was clear that anything short of drastic limitations would still allow sufficient complexity for provably-hard puzzles to emerge. I certainly didn't want to make a game with no wiring, but even then, a maze with moving animals might be enough for provably-hard puzzles. Chipping away clearly wasn't going to work.

I was also uneasy about the way blueprints had changed the feel of the game. You were no longer sneaking your way through a mysterious house, coming around corners and being shocked by what you discovered. You saw it all up-front, so you knew exactly what to expect.

Still, without blueprints, combination locks would rear their heads again, right? And what about real puzzles, where hidden information has no place?

Then I realized something: I never wanted to make a puzzle game here. Looking back through my notes from the fall of 2011, the word "puzzle" does not occur. But the game grew into a puzzle game, and I fostered that. My original vision of a tactical, player-generated, Roguelike, every-cycling arms race was nowhere to be found, though. Was there some way to get it back?

The problem, it seemed, were puzzles. Puzzles aren't tactical and in-the-moment. They're about studying something from the outside and discovering the one, correct solution, and then applying it. But if players can design anything they want, won't they be able to make puzzles? Well, only if they can somehow force other players to solve the puzzles. The 9-thick wall trick was the first step taken in this direction: "You cannot bypass my buttons now. You must figure out how to press them correctly to pass."

What if there was some way to bypass anything, eventually? Then the keystone of the problem became clear: the 8-slot backpack (or the N-slot backpack). What if players had infinite backpacks? Well, then they'd just plow through everything and not even need to think. But what if there was a way to balance it so that there was an enormous cost to doing this?

First of all, what if tools were much more expensive? Then you'd certainly think before you'd use one. But still, you might as well fill the backpack to the brim for every outing. Then you'd have plenty of whatever you'd happen to need. You might think a bit in order to conserve tools, but every house would be crackable in one go, and you wouldn't make any hard choices about what to carry. No cycling arms race. That's what the original limit of 8 slots was for---to force hard choices. But house designers exploited that known limit to the point where tools became useless (no choices at all).

So, there has to be some cost to a brim-full backpack. What if unused tools are lost at the end of every robbery? So if you bring 100 saws, but there are nothing but concrete walls, you're really screwed. You'd need to scout, and plan, and think, and come in with just a few tools to scout some more, and then finally load up with exactly the right combination to get through the house (and then perhaps find that the owner made last-minute changes that screw you).

And thematically, this makes some sense. You need to empty your backpack to carry out the loot. And if you run out the door without taking anything, you're in such a hurry that you ditch your backpack. Even more interesting: what if the extra tools you ditch end up in the owner's vault?

This has the nice side-effect of bringing a cost to scouting that seemed to be missing. It also helps to grow the prize in a well-scouted house, and can leave a victimized owner with a little something as a bootstrap (the extra tools left by the robber who reached the vault).

Of course, there's a sticking point that prevented me from seeing this solution all along: an infinite backpack isn't realistic. But this game wasn't meant to be realistic, obviously.


Thus, with a great hopefulness, I give you version 9 of The Castle Doctrine. A game with hidden information and soft puzzles, where with enough money, you can buy your way through anything, but where money is so scarce that you'll end up thinking your way through most things. Where you'll sneak around corners, make tactical decision, and try to take subtle advantage of current trends. And where you'll die. A lot. At least that part hasn't changed.

A full list of changes can be found here:

The Castle Doctrine Change Log

Discuss this post in the forums