Breaking the secret of online slot machines
Who hasn't been curious enough to observe the mechanical workings of a slot machine (the slot machines installed in casinos), uncovering the perverse sequence of the prize system that so often impoverishes and very rarely enriches hopeful and naive users?
First of all, a clarification: I don't gamble for money or for mere social entertainment, but I confess I'm an admirer of simulators, having dealt with them on several professional and educational occasions. I casually stumbled upon slot machines while browsing a Yahoo banner. The casino offered entertainment mode, with virtual money, without any financial commitment or real money, via online credit card (I'd like to see the size of the ears of someone who voluntarily offers their credit card to a site like that).
I downloaded the local casino module and became interested in the three available slot models, which have a realistic appearance and sophisticated functionality. With the facilities offered for "unlimited" fun play, a detailed and in-depth study of the operational behavior of the equipment and the prize system was possible. From the user's point of view, the experience offered is that of an authentic slot machine, with the presence, sound, operation, functionality, and, above all, the capacity to win or lose inherent to the perverse betting system characteristic of real casino slot machines.
The starting point of the research was the analysis of the content located in the specific directory installed by the system after download. Normally, these modules installed on the user's computer—programs, sounds, images, and complementary resources—are encapsulated, packaged in libraries that make access to any system secrets impermeable and invisible. To my surprise, this did not occur in this installation. Except for the hidden functionality, represented by the second and certainly more complex phase of reverse engineering, I found all the desired content for the study residing in the directory: images of the equipment, sounds incorporated into the activities, drawings, and self-relief sensitivity effects. It was like locating a copy of the blueprint of an open engine, its industrial parts, without the assembly instructions.
To carry out the "sinister plan" of investigation, it would be necessary to carefully observe the regular functioning of the slots, including a study of the frequency of prizes and details of the user's interaction with the machines. And a thorough study of the "moving parts," activation of sounds, timing, sequence of tasks, and mechanical locks.
The reverse engineering prototypes were developed in Visual Basic, with fully satisfactory results. However, the biggest challenge was yet to come, when I would need to discover the graphic tricks of the special effects caused by the illusion of rotation of the figure reels. Slot machines have three or more reels with figures that rotate randomly, gradually stopping and forming configurations. These configurations may or may not represent prizes.
However, nothing compares to the effort required to discover the law governing random draws, specific to each type of slot machine. For brief moments, I felt like I was uncovering the secrets of the Japanese code machine from World War II, skillfully opened by the Americans, whose confidentiality allowed them to dominate the fierce air and naval war in the Pacific. For a research ergonomist, this challenge made me happier than a dog with two tails. It was laborious, but the results were rewarding. I achieved the desired reverse engineering of the three machines, with refined customization of functional details to make their use more motivating.
The outcome regarding the odds/reward aspects was predictable. Opening the slots revealed the sequence of probabilities against and in favor of the player in the form of figure matrices. To assess the odds, I placed the simulated prototypes on a "bench" continuously counting the results. Accurate diagnosis after five days of uninterrupted operation:
Machines 1 and 2 offer a highly favorable scenario for the user if the drawing system is strictly random and based on fair odds. The user rarely loses.
Machine 3 (video poker) offers the user no chance. It's a "pocket cleaner".
The prize offered by slot 3 is far below the mathematical expectation (the amount wagered divided by the probability of its occurrence).
Theoretically, if the user continuously played the same amount on machines 1 or 2, they would have infinite winnings. This suggests that the prize system of machines 1 and 2 is affected by online commands, altering the randomness of the draw and artificially creating losses.
Comparing the online behavior of machines 1 and 2 with the results presented by the offline reverse engineering prototypes makes it possible to understand the diagnosis presented above quite clearly.
Apparently, slot machines use an attractive reward system as a lure for the user, who, after the trap of simulated gameplay with virtual currency, is encouraged to play with real money using a credit card. It's not a question of whether or not you will lose, but how quickly and when you will certainly lose.
— It's impossible to win on machine 3. The deck is complete (52 cards) and throughout the entire bankroll phase, no street flashes or royal street flashes (complete sequences of the same suit) were obtained. The chances are slim and the reduced winnings do not cover the losses.
— To make matters worse, machine 3 offers five prize tiers with very low returns. The prize for the PAR (evening pair) is only awarded for "figure pair" or "ace," further narrowing the user's chances of winning.
The developed models exceeded expectations. The mechanical behavior of the slots was balanced and apparently error-free.
This work, however, will have a nobler purpose than fleecing investors lured by the siren song of slot machines. My ergonomics students will analyze aspects such as usability, interface, and industrial design of the prototypes. A sober destiny for fun but perverse instruments.
(*) Isnard Martins is a professor at PUC-Rio (O Globo).


