• Welcome to the Speedsolving.com, home of the web's largest puzzle community!
    You are currently viewing our forum as a guest which gives you limited access to join discussions and access our other features.

    Registration is fast, simple and absolutely free so please, join our community of 35,000+ people from around the world today!

    If you are already a member, simply login to hide this message and begin participating in the community!

5x5x5, 6x6x6, 7x7x7 or NxNxN solvers

dwalton76

Member
Joined
Jan 2, 2017
Messages
66
YouTube
Visit Channel
I just pushed a fix, the odds of hitting that bug were 1 in 40,320!! :) There is one more bug to fix here, for some reason the entire cube rotations (x, y, z moves) are not being removed as they should be.
 

dwalton76

Member
Joined
Jan 2, 2017
Messages
66
YouTube
Visit Channel
I'm sorry that this is totally unrelated to the conversation, but I just spent a quarter of an hour or so reading through some messages on this thread and this is so fascinating. I know very little of what any of you say but I wish I did, are you programmers or coders? Or is coding a hobby?
I write code for a living and as a hobby :) I do a lot of lego mindstorms projects for fun and one of those was a rubiks cube solving robot which led me down this path of writing a NxNxN rubiks cube solver.
 

SteveCuber

Member
Joined
Jul 13, 2018
Messages
38
I just pushed a fix, the odds of hitting that bug were 1 in 40,320!! :) There is one more bug to fix here, for some reason the entire cube rotations (x, y, z moves) are not being removed as they should be.
One in 40,320! I was really scratching my head over this one. Tried out the fix and it worked like a charm. Thanks for the quick solution.
 

SteveCuber

Member
Joined
Jul 13, 2018
Messages
38
Hi dwalton76,
Unfortunately, the uSD on my RaspberryPi 3 crashed. Fortunately, a backup of key files was done a few days before. Reinstalled Raspbian and tested a few Python programs and all looked good. I did a reinstall of rubiks-cube-NxNxN-solver and kociemba 3x3x3 solver, per github instructions.
Tried 3x3x3 and 5x5x5 and was not able to get either to work.

Have attached the results from my installation and running of the attempt to solve the first cube. A common error on install and the first run is an invalid syntax related to a filesize, such as below:

File "/usr/local/lib/python3.5/dist-packages/rubikscubennnsolver/LookupTable.py", line 286
log.info(f"{filename}: filesize {os.path.getsize(filename):,} does not equal target filesize {filesize:,}")
^
SyntaxError: invalid syntax

Any suggestions you have to offer would be appreciated.

Thank You
 

Attachments

dwalton76

Member
Joined
Jan 2, 2017
Messages
66
YouTube
Visit Channel
It is because of the f-strings, this feature was introduced in python3.6 but you are running 3.5. I should have the installer catch this and raise a better error.

In a nutshell though if you upgrade to python 3.6 or later you should be good.
 

SteveCuber

Member
Joined
Jul 13, 2018
Messages
38
It is because of the f-strings, this feature was introduced in python3.6 but you are running 3.5. I should have the installer catch this and raise a better error.

In a nutshell though if you upgrade to python 3.6 or later you should be good.
Thanks for the quick reply.
 

SteveCuber

Member
Joined
Jul 13, 2018
Messages
38
Hi dwalton76,
Updated python3 and now have Rev 3.7.3 installed. FYI, the code is being ran on a Raspberry Pi 3. The latest version of Raspbian was downloaded earlier this week.

With Python 3.7.3 installed, a 3x3x3 cube was solved. One case each of 4x4x4 and 5x5x5 cubes were not solved. Output files are attached.
Do you have any other suggestions?
Regards.
 

Attachments

Top