dwalton76 / rubiks-color-resolver

Resolve rubiks cube RGB values to the six cube colors
MIT License
34 stars 15 forks source link

Invalid 3x3x3 cube produced #3

Closed dwalton76 closed 5 years ago

dwalton76 commented 6 years ago

This scan was hosed (that is another issue) so there were two green centers, etc. crane-cuber-OLLed-cube.json.gz

The cube we produce causes kociemba to barf

robot@kids:~/rubiks-color-resolver$ kociemba FBLFULLLLUDUURUFDBFFFRFLBUDRRRBDFLRRUUDBLFBDUBRRBBLDDD
ERROR: sum is 11, must be even
U R2 L' B' R' U F R2 D2 L' D B R2 U D' R2 B2 R2 B2 U D2 B2 
robot@kids:~/rubiks-color-resolver$ 

Even though the edge swaps and corner swaps were both even. Need to follow this guide in order to detect the parity issue we are hitting in this scenario. http://www.kociemba.org/math/cubielevel.htm

dwalton76 commented 5 years ago

We will now raise an exception about the invalid scan.