# Sunday Times Teaser 2835 – Jeweller’s Rouge

*by Andrew Skidmore*

#### Published: 22 January 2017 (link)

Fabulé’s latest creation consists of a set of equal-sized silver cubes. On each face of each cube there is one diagonal of identical rubies. No two cubes are the same, but had Fabulé made any more such cubes then it would have been necessary to repeat one of the designs.

How many cubes are there in the set?

2 Comments
Leave one →

Here’s the code I used to solve this puzzle.

First I created a generic class to describe the rotations of the cube.

Then I used this to find distinct patterns of diagonals: