Advertisement

5x3 Slot Game Logic

Started by August 19, 2019 11:24 AM
14 comments, last by JessKass 5 years, 2 months ago

Hi Everyone!

I'm in a bit of a pickle right now ☹️! I'm creating a 5x3 Slot game for android and I'm kind of stuck when it comes to the number of symbols placed in each reel?.

I tried to understand how the symbols are placed in other android slot games but it's a bit tough?. Is there a logic behind the placement of symbols?

By any chance can anyone out there help me out with the logic/doc./tutorials, etc.,?? That would be highly appreciated ?

Thanks in advance! 

It's understandable that you are having a hard time figuring this out. Companies that make gambling games are very secretive about their algorithms. Governments that regulate gambling games have their own criteria for what's legal and what isn't. You may need to make friends with someone else who's making slot games. 

-- Tom Sloper -- sloperama.com

Advertisement

Just place them randomly. You can assign probabilities to each symbol if you want a random outcome that is not dependent on the skill of the player (if there is just a start button and no individual stop button for each reel). Otherwise - if the reel stops on the current symbol when the player presses the stop button - just place the symbols in a random order, with each symbol appearing once or multiple times on the reel.

5 hours ago, JoAndRoPo said:

Hi Everyone!

I'm in a bit of a pickle right now ☹️! I'm creating a 5x3 Slot game for android and I'm kind of stuck when it comes to the number of symbols placed in each reel?.

I tried to understand how the symbols are placed in other android slot games but it's a bit tough?. Is there a logic behind the placement of symbols?

By any chance can anyone out there help me out with the logic/doc./tutorials, etc.,?? That would be highly appreciated ?

Thanks in advance! 

Each machine will have (x) number of possibilities depending on how many symbols are on any given reel (unique or otherwise). As you only have 5 reels they should all have a static layout per reel, and the random part is which symbols show up within the selection spots (the end result of the spin), and how you decide to emulate the spins to display that result which is normally pre-calculated once the button or (spin icon) is pressed, and the rest is just for show.

Based on my understanding of slots a reel can have anywhere from 10 to 20 symbols, and these are static not random so even digital machines keep their reel orders. This also really depends on how you wish to setup your digital slot machine.

I cannot comment on the "logic" behind the symbol placement, but I can assure you that it has been done in a way that generates the least likely chance of the player from winning against the house long term. Most likely such information is going to be insider knowledge and not publicly advertised.

For the spins, just set a random number for each index per reel to generate your end result.

Example:

Reel 1:

[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

[A, A, C, E, F, E, B, A, C, B]

Then run a randomizer so if you had 4 then you would show the reel with E at the center and C, A, A above and F, E, B below.

Programmer and 3D Artist

Hi, Thanks a million for replying. ?

I guess you are right ?! It's really difficult to get the exact logic on the symbol placement and all. Been going through a lot of YouTube videos, articles and forums but to no avail ?

I will be trying the example you guys provided and maybe test it a bit to see how it comes out. ?

More suggestions appreciated! ?

Once again! THANK YOU! ?

12 minutes ago, JoAndRoPo said:

maybe test it a bit

Maybe test it a LOT. You need to determine the odds.

-- Tom Sloper -- sloperama.com

Advertisement
25 minutes ago, Tom Sloper said:

Maybe test it a LOT. You need to determine the odds.

? Yes! Don't know why on earth did I mention 'a bit' ... 

It's going to be an aggressive testing... ?

You can just calculate the odds though?

For example, assuming an uniform distribution of probabilities (i.e. every symbol on a reel has the same probability), if 77777 and 55555 are the winning combinations and you have 5 reels with 10 symbols, of which one is 7 and two are 5's, the number of combinations is 10^5 = 100000 and the number of winning combinations is 1^5 (for 77777) and 2^5 (for 55555), so it's 1 + 32 = 33. The probability of winning is therefore 33/100000. If you win x with 77777 and y with 55555 and otherwise lose z (z is negative to indicate a loss), you will win (x*1 + y*32 + z*99967)/100000 on average ("expected value"). Ideally you want that to be negative so the player loses money.

For actual real-money-gambling slot machines, the distribution of symbols doesn't matter because the symbols you get don't determine if/what you win.  It's actually the other way around: what you win determines which symbols you get.  The computer inside the slot machine determines if you win and how much by using a random number generator, then the computer causes the wheels to stop so that the symbols match what you won.  This allows the owner to tweak the actual odds without modifying the hardware.  Publicly visible slot machines tend to have better odds than those deeper inside the casino because publicly visible wins attract more people.

Or so I've heard.

13 minutes ago, a light breeze said:

For actual real-money-gambling slot machines, the distribution of symbols doesn't matter because the symbols you get don't determine if/what you win.

It actually does matter... because if your reels are like this for example:

(not the best example - but the point is the order will increase or decrease multi-line win matches among the symbols)

#1 - Apple, Pear, Pear, Grape, Apple

#2- Apple, Grape, Apple, Grape, Pear

#3 - Pear, Pear, Grape, Apple, Apple

When each index per reel is selected to be the chosen one, collectively there will be a "chance" of win odds based on the reel set up as placement will dictate the chance of winning not just in a straight line, but in multi-line play.

There is a direct relationship between the odds in winning cross-line and how the symbols are ordered per reel.

Programmer and 3D Artist

This topic is closed to new replies.

Advertisement