Right… confession time. I’ve started ANOTHER website!! This one is a bit different from the usual Infinite Lives stuff though, because it’s about a plastic cube with 54 coloured squares that has been winding people up since 1974.
It’s called Sort My Cube, and it does exactly what it says. You’ve got a mixed up cube, you want it fixed, the site fixes it with you, one turn at a time.
Why build a Rubik’s Cube solver at all?
There are other solvers online, I know. But try one. Most of them want you to type your colours into a little grid using letters, then they hand you back something like R U’ F2 D’ and wish you luck. Brilliant if you already speak cube. Absolutely useless if you don’t, and let’s be honest, most people with a scrambled cube in the kitchen drawer don’t!!
So I wanted one that anyone could use, including people who have never solved a cube in their life. No codes to learn, no maths, no squinting at a string of letters.
How it works
- You paint your cube’s colours onto a 3D cube on the screen. Tap a colour, tap the squares, spin it round to get the hidden sides.
- It checks your work. If a colour is missing, a corner is impossible or a piece looks twisted, it points at the squares to look at again, instead of just saying “error” and leaving you to it.
- You press Solve my cube, and it shows every turn. The layer that needs to move lifts up, turns slowly, and it tells you in plain words what to do. Go one turn at a time, go back, or play the lot at whatever speed you like.
Most cubes are solved in about 20 turns, which still amazes me a little bit.
The geeky bit
Under the bonnet it uses the two-phase method worked out by Herbert Kociemba, which is a clever way of finding a short solution very quickly. The whole thing runs in your own web browser, so nothing you paint gets sent anywhere. The 3D cube is drawn live on the page and works on phones as well as computers, because let’s face it, that’s where most people will be using it, cube in one hand, phone in the other…
This is the same sort of work we do for clients every day: custom code and plugins that make a website actually DO something, not just sit there looking pretty.
Not just a cheat button
I didn’t want it to be only a cheat button either. So the site also has a proper beginner’s guide that takes you from scrambled to solved in seven steps, with every move written in words as well as the usual notation. There’s a page that explains what R, U’ and F2 actually mean, so any guide or video suddenly makes sense, plus tips for getting faster and a blog about cubes, gear and the wider puzzle world.
So you can use the solver to get unstuck tonight, and learn to do it yourself by the weekend. That’s the plan anyway!!
Why is it free?
Because a solver nobody can afford is a solver nobody uses. Sort My Cube is paid for by adverts, which keeps the solver free for everyone, kids included.
One more thing worth saying. It’s an independent site, built and run by us here at Infinite Lives. It’s not connected to the people who make the official cubes, which is why it’s called Sort My Cube and not anything with their name on it.
Have a go
If there’s a cube gathering dust in your house (and there usually is one somewhere), dig it out, give it a good mix and see if Sort My Cube can sort it. And if you spot anything that could be better, tell me. That’s how all our best stuff gets better… by people breaking it first!!
It’s now on our Free Tools page too, and if you want the nuts and bolts of how it was put together, the case study is in our Work.
Photo: Lars Karlsson (Keqs), CC BY-SA 3.0, via Wikimedia Commons.