I'm working on a HTML5 slot game and am completely stuck on the pay lines and the dots that produce the lines from 1 end to the other.
What's the logic behind generating a random number of dots (9-30) and then paylines properly? Paylines shouldn't overlap each other. Similarly paydots shouldn't overlap and position themselves properly. On a small mobile screen 30 dots should just fit fine.
Then, how can I go about matching combinations from reels against the paylines?