https://github.com/miskcoo/rubik-cube
Rubik's Cube solver implemented by C++ and OpenGL using Krof/Kociemba algorithm.
https://github.com/miskcoo/rubik-cube
algorithm rubik-cube-solver
Last synced: 4 months ago
JSON representation
Rubik's Cube solver implemented by C++ and OpenGL using Krof/Kociemba algorithm.
- Host: GitHub
- URL: https://github.com/miskcoo/rubik-cube
- Owner: miskcoo
- License: mit
- Created: 2016-10-20T08:07:58.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-18T11:23:42.000Z (about 8 years ago)
- Last Synced: 2025-04-06T04:41:18.646Z (7 months ago)
- Topics: algorithm, rubik-cube-solver
- Language: C++
- Homepage:
- Size: 2.24 MB
- Stars: 133
- Watchers: 8
- Forks: 32
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rubik's Cube Solver
A Rubik's Cube solver implemented by C++ and OpenGL. You can use your mouse to rotate the cube.
See [HERE](http://blog.miskcoo.com/2017/03/how-to-reconstruct-rubik-cube)(in Chinese) for more details about the algorithm.

## Requirement
* C++11 support (especially the multi-thread library)
* OpenGL
* GLFW
## Usage
```bash
solver -tra
```
* *-t* maximum thread number used to calculate, the default value is 1.
* *-r* random twist times to generate a cube.
* When using Krof algorithm, the default value is 15.
* When using Krociemba algorithm, the default value is 200.
* *-a* specify which algorithm will be used to solve the cube.
* Only two algorithms are available: *krof*, *kociemba*.
* The default algorithm is kociemba.