crazy888s
Technical User
- Jun 24, 2003
- 144
I have a 2-D array of different char values sorted in a logical square (there are the same amount of arrays as their are values in each array: [size][size] thisArray.) Each square has layers depending on how big it is. Ex (each number below represents a different layer):
22222
21112
21012
21112
22222
or:
1111
1001
1001
1111
etc.
How can I rotate, for example, layer 2 of the top square 4 units clockwise, or layer 0 of the bottom square, etc. (layers and rotation units are ints)? Any input is greatly appreciated! Thanks.
22222
21112
21012
21112
22222
or:
1111
1001
1001
1111
etc.
How can I rotate, for example, layer 2 of the top square 4 units clockwise, or layer 0 of the bottom square, etc. (layers and rotation units are ints)? Any input is greatly appreciated! Thanks.