How would I solve a problem like this

Exactly as the title suggests: http://aipo.computing.dcu.ie/programming-problems#___Cube_Chaos
Please just explain the algorithm, or give pseudo code.
Topic archived. No new replies allowed.