Rubik's Cube Solving

Commenters discuss algorithms and strategies for solving the Rubik's Cube, debating brute-force approaches, constraint programming, state/move counts, and computational limits, with digressions to similar puzzles like N-Queens.

➡️ Stable 0.6x Science
3,146
Comments
20
Years Active
5
Top Authors
#10
Topic ID

Activity Over Time

2007
10
2008
15
2009
55
2010
104
2011
118
2012
97
2013
137
2014
138
2015
151
2016
145
2017
169
2018
212
2019
208
2020
177
2021
212
2022
286
2023
273
2024
326
2025
289
2026
24

Keywords

P159 TFA livejournal.com worldcubeassociation.org CFOP chatgpt.com youtube.com WCA E.g cube brute force brute ds solver moves force solve possibilities solutions

Sample Comments

whatever1 • Jul 12, 2018 • View on HN

Why not use Constraint Programming / Integer Programming? Provide a budget of maximum moves, seek the best possible solution.

amelius • May 4, 2015 • View on HN

What strategy is this solver using? Is it a brute-force approach? Are there heuristics used?

dan_netwalker • Aug 9, 2010 • View on HN

I'll make an educated guess... the advancement is knowing that if you make a machine that can bruteforce 6 sides x 2 turn directions, you can stop searching once a 20th movement is not enough to get the cube solved, and in the worst scenario, you will check ( 6 x 2 )^20 movements in total. I think that scores as test cases :P

alienDeveloper • Mar 27, 2011 • View on HN

this is not a brute force trick.. it calculate all possibilities and eliminate others using constraint theories.

rossant • Oct 11, 2025 • View on HN

Among the 2^n configurations, how many are solvable?

kelukelugames • Sep 28, 2015 • View on HN

Took a few hours the first time. There are thousands of solutions.

reed1234 • Sep 26, 2025 • View on HN

It’s not 218 possibilities it’s 218 moves.

jjaredsimpson • Aug 22, 2017 • View on HN

That problem is small enough to just brute force. There are only 1612800 calculations to do.

dave333 • Feb 2, 2022 • View on HN

I'm having trouble following the code - does this just brute force the solution by trying all possibilities?

Raphael • Mar 13, 2010 • View on HN

I guess the trick is there aren't that many possibilities, so you precomputed them all can search through the list.