Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support setting puzzle state #57

Open
timhabermaas opened this issue Jul 2, 2018 · 4 comments
Open

Support setting puzzle state #57

timhabermaas opened this issue Jul 2, 2018 · 4 comments

Comments

@timhabermaas
Copy link

I'm looking for a way to set the current cube state like so: setCubeState("uuuuuuuuu fffffffff rrrrrrrrr bbbbbbbbb lllllllll ddddddddd"). The specific format/protocol doesn't matter. Is there a way to do this using twisty.js? I found a setPosition method, but this only seems to change the "pointer" pointing to the current move within an algorithm.
Is such a feature even desired? It would probably break some assumptions like v.setPosition(0); v.isIdentity() == true.

@lgarron
Copy link
Member

lgarron commented Jul 2, 2018

Using the current twisty.js, no. I'm actually currently discussing with @rokicki about what puzzle format to use for v2, where we're converging on something ksolve-like.

@timhabermaas
Copy link
Author

Nice to hear. In case you guys wonder how the Giinker cube decodes the cube state, I've written about it here. I put it behind a link to not spoil anyone.

@avaver
Copy link

avaver commented Sep 1, 2018

@timhabermaas can you please share the Giiker decoding code again? The link is not working,

@timhabermaas
Copy link
Author

@avaver https://gist.github.com/timhabermaas/ada7e51b31a7188b406c42b698ba237e#file-state_description-txt

@lgarron lgarron transferred this issue from cubing/twisty.js Mar 7, 2020
@lgarron lgarron changed the title Is there a way to set the cube state directly without providing setup moves? Support setting puzzle state Mar 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants