For three years in the late 1970s and early 1980s, a college dropout named Dwayne Farmer and a small group of physicists beat roulette in Las Vegas using a computer hidden in the sole of a shoe. They cracked a game that casinos had declared unbeatable for 200 years. Then, in a single catastrophic night in the Nevada desert, it all came apart—not because the house caught them, but because they caught themselves. Born in 1952 in Silver City, New Mexico, Farmer grew up in a small house where his father worked as a forest ranger and his mother as a school teacher.

There was no money and no connections, but there was a ferocious mind. Silver City was a mining town where you either left or disappeared. Farmer left, winning a scholarship to the University of California, Santa Cruz in the early 1970s. Santa Cruz in those days was a universe unto itself.
Professors wore sandals to class, students built communes in the hills, and physics professors talked about consciousness. The campus ran on the energy of people who believed the world could be understood, dismantled, and rebuilt from scratch. Farmer studied physics because it was the closest thing he had found to a language that described how everything actually worked. It was at Santa Cruz that he found his people: a loose collective of graduate students and physics obsessives who eventually called themselves the Eudaemonic Pie.
They lived communally, shared everything, and argued about quantum mechanics over cheap wine. They believed, with the sincerity only young brilliant people can sustain, that science could be turned into a weapon against the house. The ringleader alongside Farmer was Norman Packard. Methodical where Farmer was intuitive, patient where Farmer was restless, the two together were a machine.
And what they decided to build was a machine. The whole thing started with a dare. A friend took Farmer to a casino in Reno in 1975. He watched the roulette wheel spin for 20 minutes and said he thought he could predict where the ball would land—not always, not perfectly, just often enough to matter.
His friend laughed. The mathematics of roulette, everyone agreed, were iron. The house edge was built into the wheel itself, with two green slots guaranteeing the house took 5. 26 cents on every dollar bet over time.
Farmer heard all of that and decided to build a computer anyway. Here is what most people don’t understand about roulette, and what casinos have spent decades hoping you never figure out: roulette is not a game of pure chance. It is a game of physics. When a dealer spins the wheel, two things are set in motion.
The wheel rotates in one direction, and the ball is launched in the opposite direction along the track around the inside rim. The ball decelerates due to friction, drops off the track, bounces across the numbered diamonds, and comes to rest in a numbered pocket. Every one of those events is governed by Newtonian mechanics. In theory, if you know the initial conditions precisely enough, you can calculate exactly where the ball will land.
The practice is harder. The variables are brutal: the speed of the wheel, the speed of the ball, the tilt of the wheel, the scatter pattern of the ball when it hits the diamonds. But Farmer understood something that nobody else had fully grasped. You didn’t need to predict exactly where the ball would land.
You just needed to predict better than random chance. With a 2% edge on a game where the house starts with 5. 26%, you flip the equation entirely. Suddenly, you’re not the gambler—you are the house.
The key insight was timing. Bets can be placed after the wheel is spun in most casinos, right up until the dealer calls “no more bets. ” That window, usually 8 to 12 seconds, is enough time to observe the initial conditions and make a calculation. No human brain can do that fast enough, but a computer can.
Farmer and Packard knew about the work of mathematician Edward Thorp, who had cracked blackjack card counting in the early 1960s and written about theoretical roulette prediction. They also knew about Claude Shannon, the father of information theory, who had built an early roulette prediction device with Thorp just to prove it could be done. Shannon and Thorp had proved the concept but never taken it to a casino seriously. Farmer and Packard decided to finish what they started—except they were going to build something small enough to hide in a shoe and take it to Las Vegas.
Building a wearable computer in 1976 was not like building one today. There was a surplus electronic shop in Santa Cruz, a soldering iron, and two graduate students working out of a house they shared with eight other people. The device went through years of iteration, years of failure, burned fingertips, ruined components, and arguments that shook the walls of the commune. What they eventually built was extraordinary for its time: a toe-operated computer housed in a custom molded sole fitted inside a shoe, connected by thin wires running up the leg to a radio transmitter.
A player at the roulette table would tap a micro switch hidden in the toe of the shoe—one tap for each time a fixed point on the wheel passed a reference point, then another sequence of taps for the ball. The computer would calculate the most likely sector of the wheel where the ball would land, then transmit a series of small vibrations through a solenoid buzzer taped to the skin beneath the player’s shirt. Different vibration patterns corresponded to different sectors. The player would feel a buzz and place their bet on the corresponding numbers.
The coating, the housing, the transmission—all of it was handmade. Farmer’s partner in life and in the project, Lety, helped sew wiring into clothing. Norman’s girlfriend soldered components at the kitchen table. The whole group, eight or ten people at various times, pulled the project along communally.
This was not a corporation or a hedge fund. It was a commune that decided to go to war with Vegas. They tested in Santa Cruz first. Farmer bought a casino-quality roulette wheel and set it up in the living room.
They ran thousands of spins, logged data, refined the algorithm, and got electric shocks from improperly insulated wires—sometimes severe enough to blister the skin. They kept going anyway. The first real casino test came in 1977 in Reno. Farmer walked into a small casino with a computer in his shoe, wires taped to his calf, and a buzzer pressed against his ribs.
He stood at a roulette table and tapped his toe. The system worked—not perfectly, not dramatically, but the numbers over a long enough session tilted in his direction. The edge was real, small, and enough. By 1978, Farmer and the Eudaemonic Pie were ready for Las Vegas.
They drove from Santa Cruz in a van they called the Whole Earth Truck, staying in cheap motels off the strip and eating at diners. The methodology was precise. Farmer would sit at a roulette table and spend the first 30 minutes watching, mapping the wheel. Every roulette wheel has a bias: a slight tilt, a sticky pocket, a diamond that catches the ball more than others.
He cataloged those biases in real time before the computer ever came into play. The early Las Vegas sessions were electric. The system worked better on the strip than it had in Reno because the wheels were higher quality and more consistent, which paradoxically made them easier to model. The edge climbed above 2%, sometimes higher.
But the hardware was brutally unreliable. The buzzer would cut out at the worst possible moment. The toe switch would stick, logging phantom taps. Once, a wire pulled loose mid-session, and Farmer received a sharp electric shock that made him flinch hard enough that a pit boss came over to ask if he was all right.
By 1979 and into 1980, the system had been refined to produce consistent results. Not life-changing money in any single session—roulette is slow, and bet sizes were deliberately modest to avoid attention—but over dozens of sessions across multiple casinos, the wins were accumulating. They kept notebooks logging every bet and outcome. Over hundreds of hours of play, the edge held.
The physics worked. They were beating roulette. Back in Santa Cruz, the commune dynamic shifted. Word spread, and new people wanted in—people who had no part in the years of building and burning and electric shocks but now saw the outcome.
The definition of “contributor” was getting murky. There was real money coming in now, and real money does something to people. Even brilliant people. Even people who live in communes and believe in the philosophical purity of their enterprise.
Farmer started feeling the paranoia that comes with success in an environment where success is supposed to be impossible. Every pit boss who glanced in his direction became a threat. Every security camera a potential eye on his shoe. He developed rituals around specific casinos, tables, and times of day.
Norman was quieter about it but felt the same pressure. They were doing something that, while not clearly illegal in Nevada at that time, existed in a legal gray area. The device did not interfere with the wheel or the ball; it simply made calculations. But Nevada gaming law was a living thing, and the window would not stay open forever.
The first real heat came not from surveillance footage but from a pit boss at a mid-strip casino whose name Farmer never learned. Farmer had been playing for about 90 minutes, up visibly enough that the pit boss had been watching for the last 20. The man walked over, stood behind him for 30 seconds, then leaned forward and said quietly that Farmer seemed to have a good feel for the wheel tonight. Farmer said he was just lucky.
The pit boss smiled and said the table was closing for maintenance right now. Farmer cashed out and walked into the Nevada night. Nothing was said about a device. Nothing was said about cheating.
But the message was clean and final: they knew something. After that night, the team changed their approach—different casinos, different team members playing so the same face did not appear twice at the same property. Five people were trained on the system by that point, requiring actual coordination and scheduling. And underneath all that structure, a fault line was forming.
The fault line had a name: the money. Not the amount, but the distribution. The profit-sharing arrangement had been designed for a team of eight equally committed people. By 1980, some original members had drifted away and new people had come in.
A member who had been part of the project for less than a year claimed a larger share than Farmer believed he had earned. The argument started small, the way these things always do, then grew into meetings where everyone sat in the living room and nobody looked directly at anyone else. Norman tried to mediate. But Norman had his own frustrations.
He had done an equal share of the intellectual work, maybe more of the mathematical modeling, and had spent less time in the casinos because Farmer had more nerve for the floor work. He watched Farmer get the credit—not consciously, not bitterly, but he watched it. The emotional weight was also taking its toll. This was not a game anymore.
It was a covert operation conducted in hostile territory by people who were also trying to finish graduate degrees, maintain relationships, and figure out what they wanted to do with the rest of their lives. Farmer and Lety’s relationship, the emotional anchor of the whole project, was under enormous strain. Then came the conversation Farmer would replay for years afterward. A core member of the team told him that two other members had been skimming—holding back chips from logged sessions.
Small amounts, not enough to notice in any single session, but enough to matter over dozens. Farmer went back through the notebooks. Norman helped reconstruct the sessions. The numbers did not lie.
The shortfall was real. The confrontation was ugly—denials, partial admissions, defensive anger. The trust that had held the collective together cracked clean through. The night it ended began like most nights on the strip.
It was 1981. Farmer had decided to do one final run: a clean score to split the remaining partnership and dissolve the enterprise with some dignity. They chose a casino they had not visited in months. The system was in the shoe.
The wires were taped. The buzzer was in place. Farmer found a wheel with a bias he could read easily—a slightly sticky pocket in the low teens. The first hour was good.
The edge was there. He was up close to $4,000, his best single-session run in months. Then the buzzer changed. Not with a sudden failure, but irregular signals that did not correspond to any sector in the algorithm.
He reset the input. The buzzer fired twice in quick succession. He bet. The ball landed two sectors away.
He reset again. The buzzer fired three times—a pattern that should not have been possible. Something in the chain between his shoe and his ribs had broken down. The old Farmer from 1977 would have walked away, cashed out, and found the fault.
This Farmer kept playing—not on the computer signals, which were gone, but on feel, on intuition, on accumulated knowledge. He told himself he knew the wheel. He told himself the bias was still real even without the computer confirming it. He lost the $4,000 back in 40 minutes.
Then he raised his bet. He was chasing, and he knew he was chasing. In the space of 90 minutes, Farmer lost $11,000—nearly everything the team had accumulated over the previous two months. He cashed out what was left, walked outside, sat on the curb of a Las Vegas parking lot at 2:00 in the morning, and stared at the desert sky.
Norman came out five minutes later and sat down beside him without saying anything. They stayed like that for a long time. The Eudaemonic Pie dissolved not with a confrontation or legal proceeding, but with the quiet administrative sadness of a project that had run out of momentum. Debts were settled as best they could be.
The notebooks were packed away. The shoe that held the computer in its sole was disassembled. Nevada changed its laws in 1985 to explicitly ban the use of devices to predict outcomes in casino games. The law was aimed squarely at what Farmer and Packard had done.
But by the time the law passed, the Eudaemonic Pie was already gone for years. The state was closing a door that nobody was standing behind anymore. Farmer went on to become one of the most respected physicists and complex systems theorists of his generation. He earned his doctorate, joined the Los Alamos National Laboratory, and co-founded The Prediction Company in the early 1990s with Norman Packard.
Using the same principles they had developed for roulette, they applied chaos theory and physics to stock market behavior—the same intuition, the same methodology aimed at a much larger wheel. The company was acquired by UBS in 2006. Packard built an equally distinguished career, with work in complex systems and artificial life establishing him as a foundational figure in fields that barely existed when he was soldering components at a kitchen table in Santa Cruz. Lety and Farmer did not survive the project as a couple, though they remained connected through the web of friendships the commune had built.
The project had asked too much of too many things—love included. The story of the Eudaemonic Pie became public in 1985 when journalist Thomas Bass published a book called “The Eudaemonic Pie,” later released in the United States as “The Newtonian Casino. ” It became a cult classic. Physicists read it.
Casino managers read it. A generation of mathematically inclined gamblers read it and went to roulette tables with notebooks and dreams. Casinos responded by installing barriers on their wheels, tightening the “no more bets” calls, and training dealers to spin with more variation. They did not beat the physics.
They made the physics harder to measure in the time window available. They cracked roulette—genuinely cracked it, not as a thought experiment but in actual casinos under actual lights with pit bosses watching and electric shocks buzzing up their legs. They took a game the entire gambling industry had declared unbeatable for two centuries and made it beatable. But they also lost not just the $11,000 on that final night.
They lost the trust that had built the collective, the relationships that had made the project worth doing, and the purity of the enterprise. The house did not break them. They broke themselves—greed in small doses, exhaustion in large ones, the ordinary human failure that no algorithm can protect against. Farmer spent years studying complex systems, trying to understand how order emerges from chaos.
The wheel spins, the ball drops, the physics are real. But the people betting are not machines. And no computer in a shoe has ever fixed that.