Morkinas
Member
What is the best way to make a code that would read numbers 13, 14, 22, 24, 33, 34 as "neighbors = true" for number 23? (numbers are coordinates for hexagon tiles) And it would work with any number.
11 12 13 14 15...
...21 22 23 24 25...
31 32 33 34 35...
1,1 1,2 1,3 1,4 1,5...
...2,1 2,2 2,3 2,4 2,5...
3,1 3,2 3,3 3,4 3,5...
11 12 13 14 15...
...21 22 23 24 25...
31 32 33 34 35...
1,1 1,2 1,3 1,4 1,5...
...2,1 2,2 2,3 2,4 2,5...
3,1 3,2 3,3 3,4 3,5...