So, I have some variables declared as follows:
int rect1Color;
int rect2Color;
int rect3Color;
...
int rect63Color;
int rect64Color;
I need to change each of these variables based on a loop that looks like this:
for (int i = 0; i < sizeof(playPos) / sizeof(char*); ++i) {
    const char* TEMP = playPos[i];
    if (TEMP != " x" && TEMP != " o" && TEMP != "xx" && TEMP != "oo") {
        if (TEMP == " p") {
            rect[i+1]Color = 1;
        }
        else {
            rect[i+1]Color = 2;
        }
    }
    else if (TEMP == " o" || TEMP == "oo") {
        rect[i+1]Color = 3;
    }
    else if (TEMP == " x" || TEMP == "xx") {
        rect[i+1]Color = 4;
    }
}
That draws from this data set:
const char *playPos[64] {
    "  ", " o", "  ", " o", "  ", " o", "  ", " o",
    " o", "  ", " o", "  ", " o", "  ", " o", "  ",
    "  ", " o", "  ", " o", "  ", " o", "  ", " o",
    "  ", "  ", "  ", "  ", "  ", "  ", "  ", "  ",
    "  ", "  ", "  ", "  ", "  ", "  ", "  ", "  ",
    " x", "  ", " x", "  ", " x", "  ", " x", "  ",
    "  ", " x", "  ", " x", "  ", " x", "  ", " x",
    " x", "  ", " x", "  ", " x", "  ", " x", "  "
};
The data set and logic all work, I just can't find a simple way to set the values of the variables.
