It’s a combination of memorization of face states, a limited set of moves trained in to muscle memory, and chance.
That is, there are very few people who can consistently solve a randomly mixed cube in under 10 seconds every time.
But most mixed up cubes aren’t really “random” but instead are in a relatively small set of states for which the person has memorized the solution.
Latest Answers