benbotto / rubiks-cube-cracker

An OpenGL Rubik's Cube implementation with an optimal solver. Written in C++.
187 stars 23 forks source link

From Another Program #3

Closed karaketir16 closed 3 years ago

karaketir16 commented 3 years ago

Is it possible to use this as library in another c++ program?

Or is it possible to run this program as just giving the scramble or positions of cubies as input and solution as output? Like

./solver < scramble.txt  > solution.txt
./solver < cube.txt  > solution.txt
karaketir16 commented 3 years ago

I need optimal solutions for Rubik's Cube for a project. Not a real project for now :)

Maybe I will write my own code for algorithm, it looks fun.

benbotto commented 3 years ago

It would be possible to use this as a library, but it's not set up for that scenario at present.

The program does not support taking in a scrambled cube and printing out the solution. It's a virtual Rubik's Cube and doesn't really help with solving physical cubes. Accepting a scramble as input has been on the bucket list for a while, though (PRs welcome!).