Skip to content

A project to learn Python while solving my old Rubik's Cube

License

Notifications You must be signed in to change notification settings

TiFloF29/RubikSolver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rubik's Cube Solver

Why this project ?

I am pretty sure there are quite a lot of Rubik's Cube solver. My goal is not to bring a revolutionary new tool, but to learn Python doing it without using existing Python cube solvers like RubikOptimal or rubik-solver.

I hope this project will evolve towards a camera-based solution to avoid entering manually all the colors.

Install requirements

python -m pip install -r requirements.txt

Version 1

This first version is 100% command lines. You need to enter all the colors of your cube in the right order, after placing the cube with blue face towards you, and white face on top.

Note

Here is the order you will be asked to follow :

  1. Blue / Front
  2. Red / Right
  3. Orange / Left
  4. Green / Back
  5. White / Upper
  6. Yellow / Down

Important

Looking at the cube, colors should be given from top-left to bottom-right:

   1   2   3
   4   5   6
   7   8   9

Cube's representations

In order to facilitate face rotation computation, I opted for a numerical representation of the cube:

Numbers of the Rubik's Cube

That way, I am able to list all the adjacent cells, so none are forgotten during face rotation:

Adjacent Cells

Now a face rotation will be computed as a characters permutation depending on what face is involved.

About

A project to learn Python while solving my old Rubik's Cube

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages