Grasshopper

algorithmic modeling for Rhino

Hi, 

This is my attempt to solve the Rubik Box

https://naeimdesigntechnologies.wordpress.com/2017/01/30/rubik-cube...

Views: 1068

Replies to This Discussion

Hello Mohamed,

This looks interesting.

I haven't got the time to study your definition but I want to point out a mistake that I located that can hopefully help you:

The initial state of the Rubik's cube in your definition is impossible.

The 2 (or 3) sides of the cube's corner pieces can never be the same color (see image:)

 because they are actually part of the same piece (they always move together).

So in your definition it is as if you have removed the stickers from the cube and replaced them randomly, which results in an unsolvable cube...

In order to start with a properly scrambled cube, I believe you could start with a solved cube and perform a big number of random rotations on it (just like you would do in real life).

On another subject:

"There are over 43 quintillion legal positions of the Rubik’s Cube.

19-big-number.png

  • It would take thirteen hundred million years to see every position if you were able to view one thousand per second.
  • If we stacked 43 quintillion pennies, the stack would be tall enough to reach the sun and return to the earth four thousand billion times."

source: http://b.chrishunt.co/how-many-positions-on-a-rubiks-cube

So, trying to brute-force the Rubik's cube is definitely not the way to go... :)

Of course there is a number of programming algorithms for solving the cube (examples) but I don't know how easy it would be to implement them in GH....

Best of luck and please keep us posted!

Nikos

 


Nikos, Thank you very much, there was no chance ever to notice that ever, do you have a real Box in your office? 

I will fix that and get back to you soon 

Regarding the number of possible combinations, this is what i was told, I believe you, I am looking into your suggested solutions tonight, and see if are they achievable

Mohamed,

yes I have a cube and I have learned how to solve it (but I certainly don't know how to code solving it...)

Maybe it would be easier to change your definition into a game (I kind of have a thing for creating games in GH...)

You could have a button to scramble the cube and then come up with some well-designed controls for the user to try and solve it... Which wouldn't be easy either, at least without having the ability to interact directly with the cube.

File Edited according to Nikos suggestion 

3 custom cubes added (different settings)

Attachments:

https://www.youtube.com/watch?v=mvhKNXHQqyM this video explain alot about solving 

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service