Solving Cubot - AkshathRaghav/cubot.io GitHub Wiki
solve()
--> Solves the cube and returns the solution.
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

The output is not formatted, and has no newline characters. Keep this in mind while using it.
isSolved()
--> tells you if its solved
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 :arrow_up: returns false