Skip to content

VelbazhdSoftwareLLC/Fruit-Machine-Simulator-with-Excel-Interface

Repository files navigation

Fruit-Machine-Simulator-with-Excel-Interface Build Status

Fruit machine simulator with Excel input-output interface.

Modern slot machines are the most popular form of gambling games. These games inherit the mechanical slot machines where reels were disks with symbols drawn on the surface. The electronic slot machines do not have mechanical reels. Instead, they have virtual reels. Game symbols are organized in two-dimensional arrays where each column presents a single reel. The player spins the reels, and after a short period, they stop. Stopped reels do form the game spin outcome. Wins are counted from left to right, usually according to predefined winning lines. Some games have wild symbols that substitute any other symbol without scatters. Scatter wins are not organized in lines, and they are formed by scatter symbols that can appear at any place on the screen.

Slot machines, like any other gambling game, have a standard parameter called a return to player (RTP). The RTP is the percentage of the bet the player will get back statistically in a single run. For example, in a game with 95% RTP, it means that if you statistically bet 100 dollars, you will get back 95 dollars after a single game run. The RTP parameter is significant, and it is the most strictly controlled characteristic of any gambling game worldwide by the gambling commissions. The other exciting parameter is the game's volatility, which attracts much less attention from gamblers and government regulators. The volatility is about how often the game will give you small and big wins. If the game gives small wins, it is often a low-volatility game. Otherwise, if the game gives high wins, it is rarely a high-volatility game.

When you are creating a slot machine, or you are checking a slot machine created by somebody else, you need to make a combinatorial calculation of the RTP or do a Monte Carlo simulation. Some slot machines are so complex that even the best mathematicians in the world are not capable of making a combinatorial computation of the RTP. In such cases, a Monte Carlo simulation is the only choice. This project is about a Monte-Carlo simulator that can calculate many statistical parameters of a slot machine mathematical model.

Building Commands

gradle wrapper

./gradlew jarAll

Useful resources