muodov / kociemba

A pure Python and pure C ports of Kociemba's algorithm for solving Rubik's cube
GNU General Public License v2.0
566 stars 126 forks source link

create `color2pos.py` script to make easier to describe cube positions #50

Closed kiprasmel closed 10 months ago

kiprasmel commented 10 months ago

i find it much easier to write out the cube's description by simply looking at the cube & typing out its colors.

muodov commented 10 months ago

@kiprasmel thanks for the PR, I really appreciate the interest! I can see how this script may be useful, but I don't think it belongs in this repo because:

  1. There's a reason why the standard notation is color-agnostic: real world cubes may have completely random colors, and their relative position may also be different
  2. kociemba library is focused on the solving algorithm, not on any specific case. This script is standalone: it can easily do the same manipulations, convert colors to the standard notation, and pass it to the kociemba library under the hood. Just import kociemba as a library and call the solve() function with the resulting string ;)