We’re rewarding the question askers & reputations are being recalculated! Read more.
    Question Protected by gnat
    Notice removed Draw attention by Rachel
    Bounty Ended with maple_shaft's answer chosen by Rachel
7 deleted 199 characters in body
source | link

HowIf I am attempting to simulate a Rubik's Cube, how would you create a data structure for a Rubik's cubeto store the cube's state in memory, with X number of tiles per side?

Things to consider:

  • the cube can be of any size
  • it is a Rubik's cube, so layers can be rotated

UPDATE:
to clarify, say for example, I'm writing a Rubik's cube simulation, how would I store the Rubik's cube state in memory (e.g., a 3 dimensional array of minicubes etc)

Update: removed the second question, moved it to the math stackexchange site :)

How would you create a data structure for a Rubik's cube with X number of tiles per side?

Things to consider:

  • the cube can be of any size
  • it is a Rubik's cube, so layers can be rotated

UPDATE:
to clarify, say for example, I'm writing a Rubik's cube simulation, how would I store the Rubik's cube state in memory (e.g., a 3 dimensional array of minicubes etc)

Update: removed the second question, moved it to the math stackexchange site :)

If I am attempting to simulate a Rubik's Cube, how would you create a data structure to store the cube's state in memory, with X number of tiles per side?

Things to consider:

  • the cube can be of any size
  • it is a Rubik's cube, so layers can be rotated
    Notice added Draw attention by Rachel
    Bounty Started worth 50 reputation by Rachel
6 added 9 characters in body
source | link

How would you create a data structure for a Rubik's cube with X number of sidestiles per side?

Things to consider:

  • the cube can be of any size
  • it is a Rubik's cube, so layers can be rotated

UPDATE:
to clarify, say for example, I'm writing a Rubik's cube simulation, how would I store the Rubik's cube state in memory (e.g., a 3 dimensional array of minicubes etc)

Update: removed the second question, moved it to the math stackexchange site :)

How would you create a data structure for a Rubik's cube with X number of sides?

Things to consider:

  • the cube can be of any size
  • it is a Rubik's cube, so layers can be rotated

UPDATE:
to clarify, say for example, I'm writing a Rubik's cube simulation, how would I store the Rubik's cube state in memory (e.g., a 3 dimensional array of minicubes etc)

Update: removed the second question, moved it to the math stackexchange site :)

How would you create a data structure for a Rubik's cube with X number of tiles per side?

Things to consider:

  • the cube can be of any size
  • it is a Rubik's cube, so layers can be rotated

UPDATE:
to clarify, say for example, I'm writing a Rubik's cube simulation, how would I store the Rubik's cube state in memory (e.g., a 3 dimensional array of minicubes etc)

Update: removed the second question, moved it to the math stackexchange site :)

5 deleted 101 characters in body
source | link

How would you create a data structure for a Rubik's cube with X number of sides?

Things to consider:

  • the cube can be of any size
  • it is a Rubik's cube, so layers can be rotated

Using the data structure, how can I know if a certain cube in a certain state is solvable? I have been struggling with this question myself and haven't quite found the answer yet.

UPDATE:
to clarify, say for example, I'm writing a Rubik's cube simulation, how would I store the Rubik's cube state in memory (e.g., a 3 dimensional array of minicubes etc)

Update: removed the second question, moved it to the math stackexchange site :)

How would you create a data structure for a Rubik's cube with X number of sides?

Things to consider:

  • the cube can be of any size
  • it is a Rubik's cube, so layers can be rotated

Using the data structure, how can I know if a certain cube in a certain state is solvable? I have been struggling with this question myself and haven't quite found the answer yet.

UPDATE:
to clarify, say for example, I'm writing a Rubik's cube simulation, how would I store the Rubik's cube state in memory (e.g., a 3 dimensional array of minicubes etc)

How would you create a data structure for a Rubik's cube with X number of sides?

Things to consider:

  • the cube can be of any size
  • it is a Rubik's cube, so layers can be rotated

UPDATE:
to clarify, say for example, I'm writing a Rubik's cube simulation, how would I store the Rubik's cube state in memory (e.g., a 3 dimensional array of minicubes etc)

Update: removed the second question, moved it to the math stackexchange site :)

    Tweeted twitter.com/#!/StackProgrammer/status/187236119027527680
4 added 50 characters in body
source | link
3 added 182 characters in body
source | link
2 improved punctuation, spelling, and grammar
source | link
1
source | link