I'm designing a slot machine.
I need to find the number of combinations that two matching icons will appear side-by-side in a 3X5 window (3 rows, 5 reels (columns))
A match gives the user some payout.
Having the following assumptions: Icons: H1, H2, X (all the rest). Matching Icons: should meet on the same row (side by side) (wild doesn't count here)
Window is as follows:
| | | | | | --------------------- | | | | | | --------------------- | | | | | | I have listed all possible options, and now I would like to get the exact number of combinations per each option.
Example of what I need:
The number of possibilities for this kind of scenario (1 of 72 possible ones):
| H1| H2| X | X | X | --------------------- | X | X | X | X | X | --------------------- | X | X | X | X | X | Number of H1 icons on reels 1-5: R1_H1, R2_H1, R3_H1, R4_H1, R5_H1
Number of H2 icons on reels 1-5: R1_H2, R2_H2, R3_H2, R4_H2, R5_H2
Number of all icons on reels 1-5: RL1, RL2, RL3, RL4, RL5 (respectively)
Some more examples:
| H1| H2| X | X | X | --------------------- | X | X | X | X | X | --------------------- | X | X | X | H1| H2| | H1| H2| H2| H1| X | --------------------- | X | X | X | X | X | --------------------- | X | X | X | X | X | And so on.. the only limitation I put is that H1 and H2 icons on the same reel have distance between them so I won't have kind of the following scenario:
| H1| H2| X | X | X | --------------------- | X | X | X | X | X | --------------------- | X | H1| H2| X | X |