Ok so I'm creating a program that will hopefully eventually be able to solve a Rubik's cube, but I'm having problems generating the actual cube.
I used numbers to test the function, but I'm getting weird output...
1 2 3 4 5 6 7 8 9 10 11
Ok, now, start at the top left of the up face,
and enter in the colors (red = r, green = g, etc)
in a right-to-left, top-to-bottom fashion:
1 2 3 // here i hit enter for clarity. the program works the same w/o the newline
4 5 6// here i hit enter for clarity. the program works the same w/o the newline
7 8 9
So you're saying the up face looks like this?
1 2 4
4 5 7
7 8 9
Here's the code for this segment. Why are elements a[1][0] and a[2][0] showing up at a[0][2] and a[1][2]????
I tested this by checking what up[0][2] is in the main function, but even that is the incorrect number. Anyone know what's going on here?
BTW up[][] is defined globally like this: char up[2][2];