Love LettersThe Weekend Feature · Page B1
The Dragon at the End of the Turtle: Mahjong Solitaire, From PLATO to Prism Sudoku
A paralyzed Stanford gymnast built the first mahjong solitaire one tap at a time with a mouth stick. It went on to Activision, Windows and the Game Boy, and now it’s a minigame in Prism Sudoku.
If you ever won a game of Mah-Jongg on a PLATO terminal in the early 1980s, the screen went dark and then, line by line over about twelve seconds, a dragon drew itself in glowing orange. Bug eyes, a long tongue, claws, a back that arched across the screen, with CONGRATULATIONS! above it and YOU WIN! below. Most players saw it rarely. Getting there could take an hour, and the last thirty tiles had a way of refusing to match.
The man who drew that dragon drew it, and everything else in the game, with a stick held in his teeth. This weekend we tell the story of the solitaire game that borrowed mahjong’s tiles, how it ended up in every Windows box and on the Game Boy, and why the last of the five minigames in Prism Sudoku is a little stack of colored tiles.
Sparrows
First, the real mahjong, which is a different game entirely. It is played by four people with a set of usually 144 tiles, and it grew out of Chinese card games in the middle of the nineteenth century. Scholars still argue about where: the port city of Ningbo, or the fishing towns of Fujian and Guangdong. The oldest tile sets that survive date to around 1870. Its old southern name, máquè, means “sparrow,” supposedly because the clatter of tiles being shuffled sounds like a flock of them chattering (Wikipedia).
It reached America with a bang. Abercrombie & Fitch began selling sets in 1920, and the game did so well that the company sent buyers to Chinese villages to buy every set they could find. That same year Joseph Park Babcock, who had learned the game while living in China, published his simplified Rules of Mah-Jongg, the little “red book” that taught a decade of Americans to play. There were mahjong parties with paper lanterns, and hit records: Eddie Cantor sang “Since Ma Is Playing Mah Jong.” When the fad cooled, the game stayed on in Chinatown parlors and, through the 1940s and ’50s, at the card tables of Jewish women in the suburbs. The National Mah Jongg League, founded in 1937, standardized the American rules (Wikipedia).
The Crash Pit
Brodie Lockard was a junior at Stanford and a gymnast on the varsity team. He had grown up in Tucson, where his father taught architecture at the University of Arizona, and the summer before, he had fallen hard for PLATO, the University of Illinois’s networked teaching computer, with its plasma screens that glowed orange. He wanted a terminal in his dorm room. He called Control Data, which sold them, and a sales rep named Cindy Poulos told him what it would cost. He might as well have asked to rent a sports car.
On December 6, 1979, practicing a flip off the trampoline into the foam landing pit, he jumped too high and too far and came down where the foam was only about a foot deep. He woke up in the hospital, on a ventilator, paralyzed from the neck down. He would stay there nine months. When his father asked Control Data whether anything could be done, Poulos came to see him, and then she did something remarkable. “She brought her personal terminal from home for me to use in a hospital,” he told Brian Dear, the historian of PLATO. “It was amazing” (Salon).
By then he had learned to type with a mouth stick, a long dowel with a grip at one end that you bite down on, steering the other end to each key with your neck. And one of the hospital staff had taught him a tile game they played together now and then. You laid 144 mahjong tiles out in layers, in a shape called the Turtle, and took them away in matching pairs, but only tiles that weren’t covered and weren’t hemmed in on both sides.
“Incredibly, over months, he built the entire thing one tap at a time with his mouth stick.”
One Tap at a Time
PLATO’s 512-by-512 touch screen could have been made for it. The Turtle fit with tiles big enough to press. The hard part was depth, since the screen showed everything flat, from above. Lockard’s answer was to bevel the tiles’ edges and make the border thicker the higher a tile sat, so the middle of the Turtle, where the stack is deepest, glowed, Dear writes, “like embers of a fire.” He copied every tile’s character, numeral and flower from the hospital’s set, one at a time, in PLATO’s character editor, and he wrote all of the code. He finished in 1981 and gave the game away on the network, under the name Mah-Jongg (Wikipedia).
Five years later Activision published his game for home computers as Shanghai. Lockard himself wrote the Macintosh version. Activision’s marketing called it a centuries-old Chinese game called the Turtle, which Lockard never claimed, and which, as far as anyone can tell, isn’t true. The solitaire is an American game played with Chinese tiles. Shanghai sold more than half a million copies by 1991 and went to nearly everything with a screen: the NES, the Master System, the Atari Lynx, the TurboGrafx-16, Japanese arcades through Sunsoft and, in a version by HAL Laboratory, the Game Boy (Wikipedia). The winning screen kept a dragon. On the Mac it breathed fire.
Taipei, Titans and Everyone’s Mother
Then it moved into the office. In 1990 Microsoft put a version called Taipei in its Entertainment Pack for Windows, and later Windows Vista and Windows 7 shipped one called Mahjong Titans (Wikipedia). If you grew up with a family computer, you probably have a relative who has played more mahjong solitaire than any other game in their life, and who has never played mahjong. Nintendo put it in Clubhouse Games: 51 Worldwide Classics on the Switch, beside the real thing.
The game has a mean streak that the mathematicians have measured. Choosing the best move is PSPACE-complete, which is computer science for very, very hard, and a run of ten million random deals of the Turtle found that about three percent can’t be cleared even if you’re allowed to peek under the tiles. That is why so many versions build their deals backwards to be sure they can be won, and offer to shuffle when you’re stuck (Wikipedia).
Thirty-Six Tiles
In Prism Sudoku, mahjong is a punishment that we hope feels like a reward. Play on Insane, submit a wrong grid, and the game rolls one of five minigames. One in five times it’s Mahjong. Win it and your grid comes back for a second try.
A Game Boy Color screen is 160 pixels wide, so 144 tiles were never going to fit. Ours has 36: four each of the nine Sudoku pieces, stacked in three layers and drawn in whatever display you play in, colors, numbers, color-blind palettes or grayscale symbols. The rule is Lockard’s. A tile is free when nothing sits on it and its left or right side is open. We faced his problem too, showing height on a flat screen, and solved it more plainly: little pips under each stack show how tall it is, and they brighten when the top tile is free.
Because it is a minigame with a clock, it can’t be allowed to be unwinnable. Every deal can be cleared, and if you play yourself into a corner with no free pair left, the tiles still standing are shuffled into a layout that can. The clock starts at thirty seconds plus eight for every pair in your goal, which is two pairs for each 3×3 box you got wrong. Three bad boxes, six pairs. It’s also the one you can settle into on purpose, in the Minis, where each round you win asks for one more pair, up to all eighteen.
The Dragon
We don’t have a dragon. We thought about it. What we have is the moment your grid slides back, the clock resets to two minutes, and you get another chance at the puzzle that beat you. Lockard’s dragon was something else. Dear reads it as the monster under the crash pit, the thing that changed his life, appearing at the end of the game only to mean that you had won.
Brodie Lockard moved to Hawaii in 2000. His game has been played, in one version or another, on nearly every computer and handheld made since. Thanks, Brodie. And thanks to Cindy Poulos, who brought her terminal from home.