You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for developing this module, it is truly a great resource. I have used it into my own module and while debugging, I came across a few issues that I would like to inquire about. If you are interested, I would be happy to try using some group theory tools to solve this problem ;)
Here is a simple example to reproduce the issue. Note that the two strings refer to the same Rubik's Cube, but with a different view.
importkociembaaskbgood_state="UUUUUUUUURRRRLRRRRFFFFBFFFFDDDDDDDDDLLLLRLLLLBBBBFBBBB"bad_state="UUUUUUUUUFFFFBFFFFLLLLRLLLLDDDDDDDDDBBBBFBBBBRRRRLRRRR"print(kb.solve(good_state)) # "R L U2 R L' B2 U2 R2 F2 L2 D2 L2 F2"kb.solve(bad_state)
---------------------------------------------------------------------------ValueErrorTraceback (mostrecentcalllast)
/var/folders/kw/8x7phwld2hdcznypdmdjyc6c0000gn/T/ipykernel_75413/4117867588.pyin<module>---->1kb.solve(bad_state)
~/opt/anaconda3/lib/python3.9/site-packages/kociemba/__init__.pyinsolve(cubestring, patternstring, max_depth)
59 """
60--->61return_solve(cubestring, patternstring, max_depth)
6263__all__= ['solve']
~/opt/anaconda3/lib/python3.9/site-packages/kociemba/__init__.pyin_solve(cube, pattern, max_depth)
16returnffi.string(res).strip().decode('utf-8')
17else:
--->18raiseValueError('Error. Probably cubestring is invalid')
19exceptImportErrorase:
20print(e)
ValueError: Error. Probablycubestringisinvalid
Expand code of the two cube strings using tools in rubik_cube.py:
Thanks for developing this module, it is truly a great resource. I have used it into my own module and while debugging, I came across a few issues that I would like to inquire about. If you are interested, I would be happy to try using some group theory tools to solve this problem ;)
Here is a simple example to reproduce the issue. Note that the two strings refer to the same Rubik's Cube, but with a different view.
Expand code of the two cube strings using tools in rubik_cube.py:
The text was updated successfully, but these errors were encountered: