I have a simple issue but it's a little bit confusing for me so I'd appreciate any and all help provided :).
Basically, I want a 2D array, that will be 9 in length + 1 value. So if I were to initialize it it'd be:
int[,] array = new int[8, 1];
My problem is I'm getting confused. I'm making a tic tac toe game, the first value will be the position. I will use an int to increment a value each time a turn is played. However, the second value I want to hold '0' or '1' or '2'. '0' will mean nobody has played here yet '1' will mean x has played here and '2' will mean o has played here.
When accessing the array ideally (although I cannot) I'd like to just specify array[m] but to access the array I'd need to input array[m,0] for example. I want the second value to hold a value, not a position to access the array if that makes sense.
If I can't do this with a 2D array does anyone have a suggestion of what to use? If any more info is needed please let me know.
bool?or another enum as the value, since then you have only three states.