Greetings JGO,
In this application I’ve created a grid[][] with Bytes in it.
{1, 0, 2, 0, 0, 0, 2, 0}
{1, 1, 0, 1, 1, 2, 2, 0}
{1, 0, 0, 2, 1, 0, 0, 0}
{0, 1, 0, 2, 2, 0, 1, 0}
{2, 0, 1, 2, 1, 0, 2, 2}
{1, 2, 0, 2, 1, 0, 1, 0}
{0, 1, 1, 0, 0, 0, 1, 2}
{0, 0, 0, 0, 1, 0, 2, 0}
A combo/streak is 3 of the same bytes next to each other, for example {1, 1, 1}. This can occur horizontal and vertical.
But the question is, how do I achieve finding all combos/streaks?
If possible, give an example, explained in words, of how it’s done, as I am here to learn and not copy codes.
If you have any questions, just say it.
-RoseSlayer