The array would contain the indexes of the winning positions. For the rows:
int[][] winPos = new int[][] {{0,1,2}, {3,4,5}, etc}
Then use those indexes to get to the board's contents:...
Type: Posts; User: Norm
The array would contain the indexes of the winning positions. For the rows:
int[][] winPos = new int[][] {{0,1,2}, {3,4,5}, etc}
Then use those indexes to get to the board's contents:...
Another approach would be to load an array with all the winning combinations and use it to search for winners.