lol!!!
first off i don't know how to do any of that stuff, is there like a tutorial for that?
well, not really a tutorial just the part about arrays and and
Actually scratch that. It should be char, not bool, since there's going to be 3 possible values:
The 2 dimensional array is used because there's 2 dimensions: up/down, and left/right. Let me show you some visualization...
[0] [1] [2]
[0]char char char
[1]char char char
[2]char char char
Does this not look familiar to this?
|| || ||
x
_____________
|| || ||
x
_____________
|| || || x
(Perhaps a bad diagram, but hopefully it gets my point across.)
Then if the user wants to put an X in, say coordinates (2,3), you could write something like this:
Notice that it's (1,2) instead of (2,3) because C++ arrays start at 0.
You'd also have to do error checking, because that space could already be occupied by a X/O. But it was just an example.