Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How reel position is calculated #20

Open
docljn opened this issue Jan 27, 2018 · 1 comment
Open

How reel position is calculated #20

docljn opened this issue Jan 27, 2018 · 1 comment
Labels

Comments

@docljn
Copy link
Owner

docljn commented Jan 27, 2018

No description provided.

@docljn docljn added the to do label Jan 27, 2018
@docljn
Copy link
Owner Author

docljn commented Jan 27, 2018

To determine the position of the first reel, the computer divides the first random number by a set value. Typically, slot machines divide by 32, 64,128, 256 or 512. In this example, we'll say the computer divides by 64.
When the computer divides the random number by the set value, it records the remainder of the quotient. In our example, it finds that 64 goes into 123,456,789 a total of 1,929,012 times with a remainder of 21.
Obviously, the remainder can't be more than 64 or less than 0, so there are only 64 possible end results of this calculation. The 64 possible values act as stops on a large virtual reel.
Each of the 64 stops on the virtual reel corresponds to one of the 22 stops on the actual reel. The computer consults a table that tells it how far to move the actual reel for a particular value on the virtual reel. Since there are far more virtual stops than actual stops, some of the actual stops will be linked to more than one virtual stop.

@docljn docljn added in progress bug Something isn't working done and removed to do in progress bug Something isn't working labels Jan 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant