# A Rotating Puzzle

A Rotating Puzzle

Permutation puzzles are games that test your ingenuity. In them, some pattern is rearranged according to some fixed rules not involving chance, giving rise to a new pattern that subsequently needs to be directed at a prescribed goal. The paragon of this type of game is Rubik's Cube. This Demonstration presents a permutation puzzle played on a 3×3 board with labeled squares. Click a red button to rotate the four squares around it by a quarter turn. Choose the difficulty of the game, which is a rough measure of how many buttons have to be clicked to reach the position with difficulty 0, having all squares in order. To undo a move, click the last button used three more times.