On the other side of a fairly thin wall she could hear water running in half a dozen sinks as young women performed their crepuscular ablutions. Nell was the only scripter staying in Madame Ping's dormitory; the others were performers and were just coming back from a long vigorous shift, rubbing liniment on their shoulders, sore from wielding paddles against clients' bottoms, or snorting up great nostril-loads of mites programmed to seek out their inflamed buttocks and help to repair damaged capillaries overnight. And of course, many more traditional activities were going on, such as douching, makeup removal, moisturizing, and the like. The girls went through these motions briskly, with the unselfconscious efficiency that the Chinese all seemed to share, discussing the day's events in the dry Shanghainese dialect. Nell had been living among these girls for a month and was just starting to pick up a few words. They all spoke English anyway.
She stayed up late reading the Primer in the dark. The dormitory was a good place for this; Madame Ping's girls were professionals, and after a few minutes of whispering, giggling, and scandalized communal shushing, they always went to sleep.
Nell sensed that she was coming close to the end of the Primer. This would have been evident even if she hadn't been closing in on Coyote, the twelfth and final Faery King. In the last few weeks, since Nell had entered the domain of King Coyote, the character of the Primer had changed. Formerly, her Night Friends or other characters had acted with minds of their own, even if Nell just went along passively. Reading the Primer had always meant racting with other characters in the book while also having to think her way through various interesting situations.
Recently the former element had been almost absent. Castle Turing had been a fair sample of King Coyote's domain: a place with few human beings, albeit filled with fascinating places and situations.
She made her lonesome way across the domain of King Coyote, visiting one castle after another, and encountering a different conundrum in each one. The second castle (after Castle Turing) was built on the slope of a mountain and had an elaborate irrigation system in which water from a bubbling spring was routed through a system of gates. There were many thousands of these gates, and they were connected to each other in small groups, so that one gate's opening or closing would, in some way, affect that of the others in its group. This castle grew its own food and was suffering a terrible famine because the arrangement of gates had in some way become fubared. A dark, mysterious knight had come to visit the place and apparently sneaked out of his bedroom in the middle of the night and fiddled with connections between some gates in such a way that water no longer flowed to the fields. Then he had disappeared, leaving behind a note stating that he would fix the problem in exchange for a large ransom in gold and jewels. Princess Nell spent some time studying the problem and eventually noticed that the system of gates was actually a very sophisticated version of one of the Duke of Turing's machines.
Once she understood that the behavior of the water-gates was orderly and predictable, it was not long before she was able to program their behavior and locate the bugs that the dark knight had introduced into the system. Soon water was flowing through the irrigation system again, and the famine was relieved.
The people who lived in this castle were grateful, which she had expected. But then they put a crown on her head and made her their ruler, which she had not expected.
On some reflection, though, it only made sense. They would die unless their system functioned properly. Princess Nell was the only person who knew how it worked; she held their fate in her hands. They had little choice but to submit to her rule.
So it went, as Princess Nell proceeded from castle to castle, inadvertently finding herself at the helm of a full-fledged rebellion against King Coyote. Each castle depended on some kind of a programmable system that was a little more complicated than the previous one. After the Castle of the Water-gates, she came to a castle with a magnificent organ, powered by air pressure and controlled by a bewildering grid of push-rods, which could play music stored on a roll of paper tape with holes punched through it.
A mysterious dark knight had programmed the organ to play a sad, depressing tune, plunging the place into a profound depression so that no one worked or even got out of bed. With some playing around, Princess Nell established that the behavior of the organ could be simulated by an extremely sophisticated arrangement of water-gates, which meant, in turn, that it could just as well be reduced to an unfathomably long and complicated Turing machine program.