Skip to content
Akshath Raghav edited this page Jun 27, 2021 · 19 revisions

🔠 Contents

What is Cubot?

There are many Rubik's Cube-related graphic projects and solvers which implement various algorithms for solving the cube.
But programmers might not want something just for visualizing the cube, they might want a data-structure type of solution for them to use in their own projects without having to make their own files. Perhaps they want to only make a 3D cube with the help of a library. Cubot is a library meant for this very purpose.

🤔 Why would I want it?

With Cubot, you can

  • Virtually construct a Cube ( 2x2/3x3 ),
  • Quickly execute moves and perform algorithms seamlessly,
  • Manipulate the Cube using simple java,
  • Get the solution for the cube
  • Use a cube in your own projects
  • and so much more, with the help of the methods it provides

Now speed is relative, as we all know. But Cubot can scramble the Cube, print, solve the Cube, print, bring the cube back into the scrambled state and print again, in around 1.5 to 2 seconds.

Example

How does it work?

Cubot is the top-most class in the hierarchy of the library, and it has-a Cubot3 and Cubot2

The cube object is made in the Cube class and the non-cubearray-changing methods also reside there.
For the moves, it makes use of different algorithms and re-uses simpler moves for bigger slice moves. All this happens in the Moves class.
The Checker class handles the solving of the cube and has helper methods.


Continue reading to see Cubot in action, throughout the Cubot Wiki

Clone this wiki locally