Online Rubik's Cube Solver
Do you have a scrambled cube that you can't solve? This script can help you to solve your cube. You can either describe how the cube looks like by entering the sticker colors, or give the script a scramble to work with.
Writing this solver was a personal challenge for me; I only wanted to write a script that is able to solve the cube. I did not intend to write a solver that gives very short solutions. If you are interested in fast programs that can give short and efficient solutions, go to the links section, and scroll to the bottom. There are a few links to some very powerful software.
Sometimes the script takes too long to run, and is terminated by the server. I appologize for the inconvenience if this happens. Maybe I'll try to make a faster solver in the future.
I tested the script on quite a few scrambles, but there might still be a few bugs. If you find any, please contact me.
Describe how the cube looks like
Describe how the cube looks like by entering 9 letters in each text field. Look below for examples. Don't pay attention to the 'All stickers' text field. Use the following letters for the colors:
- r for red
- o for orange
- g for green
- b for blue
- w for white
- y for yellow
Use a scramble
Example 1
For an example, look at the following cube:
Let's start with the U-face. We describe the stickers in reading order, starting at the top left of that particular face. We see the colors orange, yellow, red, orange, yellow, red, orange, yellow, red. The corresponding sticker code for the U-face would be oyroyroyr.
For the F-face, again we describe the stickers in reading order, starting at the top left. We see the colors green, green, green, blue, blue, blue, white, white, white. The corresponding sticker code for the F-face would be gggbbbwww.
In this example, the other faces are intentionally left grey.
Example 2
This example uses a random scramble.
Scramble: L F' R2 F2 D2 U R2 F' L' R' B D R U L U' R F' U B' F L' U' B R
Cube appearance:
Input: