This puzzle consists of a disk with 9 small clocks on each side arranged in a square. The four corner clocks can be twisted (the front and back corner clocks are connected). In between the clocks are four buttons. By pushing then up or down, the front or back clocks adjacent to it are connected to the corner clocks so that they will be turned when the corners are turned. The aim of the puzzle is to set all clocks to 12 o'clock.

The pictures above show the original Rubik's Clock on the left, and an imitation version on the right. That imitation is called the Magic Compass, since it has points of the compass written around each face. It still has 12 positions for each 'compass' even though 8 or 16 positions would be more logical, since the mechanism is a direct copy of the original.

It is a little known fact that the clock was actually not invented by Rubik himself but by Christopher Wiggs and Christopher Taylor. They previously invented the Orb. Rubik's Clock was granted a patent on 26 September 1989, US 4,869,506.

If your browser supports JavaScript, then you can play Rubik's Clock by clicking the link below:

There are 14 independent clocks, with 12 settings each, giving
12^{14} = 1,283,918,464,548,864 positions.

rec.puzzles archive has a solution.

Chris Eggermont's page. A somewhat cumbersome mathematical solution.

Raymond Penner's page. A Java game simulating the Rubik's Clock.

Safalra's website has a solution that solves one complete side first.

Rubik's Clock Simulator in Flash.

Note that in this solution, you only turn corners which are next to buttons in the up position. This way none of the clocks on the reverse side move, except for the corner clocks.

- Push down the bottom two pins, push up the top two.
- Turn a top corner until the centre clock matches the bottom middle.
- Rotate the whole puzzle a quarter turn clockwise.
- Repeat steps 1-3 three more times. Afterwards all the non-corner clocks on the front should match the centre clock.
- Push up all pins.
- Turn any corner till the centre clock is 12. All non-corner clocks on the front are now pointing to 12.
- We are now done with the front side (the corner clocks will be solved later), so turn over the puzzle.
- Repeat steps 1-4 for this side, so that all the non-corner clocks match. There is no need to do steps 5-6 just yet, as we have to make the corners match before setting everything to 12.
- Push down the bottom left pin, push the other three up.
- Turn a top corner till the centre clock matches the bottom left clock.
- Rotate the whole puzzle a quarter turn clockwise.
- Repeat steps 9-11 three more times. Afterwards all the clocks on this side should match each other.
- Repeat steps 5-6 for this side. All the clocks are now at 12, so the puzzle is solved.

This is the one of the few non-trivial puzzles I know in which the order that the moves are performed is unimportant (i.e. the puzzle positions form an Abelian group). This means that it is not necessary to do any particular move twice during the solution because we could change the order to do them one after the other, and therefore combine them into one move. Another puzzle of this kind is the Lights Out puzzle.

There are 16 positions that the buttons can be in, and in 14 of these we can turn a corner next to an up button or one next to a down button. In the other two cases all the buttons are the same. This means there are 30 possible types of move that can be performed.

Suppose we choose 14 independent move types. Independent means here that the effect of any of the 14 moves cannot be replicated by using only the other 13. These 14 move types can then always solve the puzzle. For any position of the clocks this can be done by writing down 14 independent equations in 14 unknowns and solving them. The unknowns represent the how far you have to turn for each type of move. Each equation represents a clock; the left side is the amount the clock is turned by all the moves, the right side is the amount it has to turn to set it to twelve.

The theoretical solution above is in general not very easy for humans to perform, but is well suited for computers. By rewriting the equations in matrix form, and inverting the matrix, finding a solution becomes nothing more than a simply multiplying the (constant) inverse matrix by a vector representing the current position to be solved. Such linear algebra is explained in the page about the Mathematics of Lights Out.

The solution for humans above does indeed use exactly 14 moves. By a suitable choice of 14 moves, and by doing them in an easy order there is virtually no mental effort needed at all.

Sometimes fewer than 14 moves are needed, because a clock happened to end up in the correct setting. There are 30 possible moves, and with a fixed choice of 14 independent ones there are always positions that need all 14 moves. Milán Baticz pointed out to me however that it is always possible to choose the set of moves such that fewer than 14 moves are needed. I decided to investigate using computer searches, and got the following results:

- The 9 clocks on one side can always be solved in 8 moves.
- Of the 12
^{5}= 248,832 positions for a cross, there are only 18066 that need 5 moves, the rest can be solved in fewer. Therefore there is a 92.7% chance of being lucky with the cross. - You have the choice of which side to solve first, so the chances of being lucky are even higher. In fact, the chances of being unlucky on both sides is a mere 0.53%.
- If you have one of the 99.47% of cases with a lucky cross, then you can solve that cross in 4 moves, and then the other side in 8 moves - 12 moves all together. The other 0.53% can be done in at most 13 moves (but maybe less).

It turns out however that even those few positions from my analysis that might need 13 moves can actually also be solved in 12 moves or less. Tom Rokicki has calculated God's Algorithm for the Rubik's Clock with the following results:

Moves | Positions |
---|---|

0 | 1 |

1 | 330 |

2 | 51,651 |

3 | 4,947,912 |

4 | 317,141,342 |

5 | 14,054,473,232 |

6 | 428,862,722,294 |

7 | 8,621,633,953,202 |

8 | 101,600,180,118,726 |

9 | 528,107,928,328,516 |

10 | 613,251,601,892,918 |

11 | 31,893,880,879,492 |

12 | 39,248 |

Total | 1,283,918,464,548,864 |

So the average number of moves to optimally solve a random position is 9.4337 moves.