-
Notifications
You must be signed in to change notification settings - Fork 1
Solving Cubot
Akshath Raghav edited this page Jul 4, 2021
·
3 revisions
Returns a warning along with the solution as well on how to fix the issue if the cube
- has been incorrectly entered,
- has an edge flipped,
- has a corner flipped
Cubot cube = new Cubot(true);
// "U2 F2 D2 U R' D2 B2 U L2 B' D' U2 F L F U' B' R' F' U F' U B L' D2 B R' B F2 R'" --> Offical WCA Scramble
cube.stringalg("U2 F2 D2 U R' D2 B2 U L2 B' D' U2 F L F U' B' R' F' U F' U B L' D2 B R' B F2 R'") ;
// scrambles
System.out.println(cube.solve());
// solves
Cubot cube = new Cubot(true);
// "U2 F2 D2 U R' D2 B2 U L2 B' D' U2 F L F U' B' R' F' U F' U B L' D2 B R' B F2 R'" --> Offical WCA Scramble
cube.stringalg("U2 F2 D2 U R' D2 B2 U L2 B' D' U2 F L F U' B' R' F' U F' U B L' D2 B R' B F2 R'") ;
// scrambles
System.out.println(cube.solve());
// solves
This ⬆️ returns false
Read on to see Cubot in action