slammayjammay / rubiks-cube-solver Goto Github PK
View Code? Open in Web Editor NEWOutputs a solution using the Fridrich Method for a given cube state.
License: MIT License
Outputs a solution using the Fridrich Method for a given cube state.
License: MIT License
I'm finding that not all solutions are the most efficient, but I don't know if that's a flaw in the algorithm or the JS or my implementation, but thought I'd post here in case you can help.
The easiest example is to start with a reset cube and make one "U" turn, to give the following state:
RRRFFFFFF BBBRRRRRR UUUUUUUUU DDDDDDDDD FFFLLLLLL LLLBBBBBB
The solution to solve this would be a single "Uprime" turn, but the algorithm returns a 75 step process:
L L D F F B B D L L R R D B B D B D B' D' B D B' D' B D B' D' R' D' R D D L D L' D R D D R' D R D' R' D' F D' F' D R' D' R F L D L' D' L D L' F' R R D' R D' R' D R' D R R D D
Any ideas why this might not be working?
Thanks for your work!
This isn't necessarily an issue, but without an example of how to return the four key phases, I'm not sure how to do so. It might be simple but I can't figure it out.
The algorithm used for solving works inconsistently, has it been properly tested?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.