Hi folks, I'm close on this, but I just can't seem to wrap my head around it.
I have a slot machine I'm working on, I have a simple straight across win line, now I'm adding multi lines and its doing my head in!
I think I need something like an array to hold the winlines, and an array for the reel items. I think I need to go through the win lines, and if the same number appears in the reel items, and my count gets up to 3 matches etc, then its good. Except I can't get my head around how to architect it (and accommodate multiple line wins too)
Here's an example image of a-the win lines array, and b: A sample value of the array that is holding all the items on display. Finally c: In case you want to see what it looks like :)
The actual project so far.
Can someone help me out, even with pseudo code to get my head around it :)
Thanks