Hans Andersson bought a LEGO Mindstorms kit for his daughters, but got caught up in making this spectacular robot himself. Meet Tilted Twister, a LEGO robot that does what most of us can't do: solve a Rubik's cube all by itself!
Just place the scrambled cube on Tilted Twister's turntable. An ultrasonic sensor detects its presence and starts to read the colors of the cube faces using a light sensor. The robot turns and tilts the cube in order to read all the faces. It then calculates a solution and executes the moves by turning, tilting and twisting the cube.
Link - Thanks Zecc!
but this has allready been done many times, many years ago..
(sorry can't be arsed to find any links)
And the code for solving rubics cubes has been around (and open source) even longer.. (and is surprizingly simple)
just google for
"rubik's solver" (with "lego" or "code")
pretty elegant bot this guy build tho'.. =]