I am looking to create a program like the following (c# btw):
int[] arr = new int[9] //some code that puts values 1, 0, or 2 in each array element for(int i
Use the modulo operator like this:
if (arr[i] == arr[(i + 3) % arr.Length]) { return true; }