magic-cube-block

image

Rule

0: Exit the program.
1: Turn the first row from left to right.
2: Turn the second row from left to right.
3: Turn the third row from left to right.
4: Turn the first column from up to down.
5: Turn the second column from up to down.
6: Turn the third column from up to down.