The cube solver is a Haskell program that generates a PDF solving manual from a Rubik's cube scramble. This is a base solver and it is used in my server and bluetooth versions, but can also be used as a standalone application.
- Server: Starts an API that takes a scramble and gives a PDF solution as Base64 response.
- Bluetooth: Connects to a GAN bluetooth cube and gives live update of the PDF solution.
- Create a
scramble.infile in the project directory containing a scramble using the template below. The orientation of the cube should be green in the front and white on the top. NOTE: This will not work with cubes that do not follow the standard color scheme.
- The parser is not case sensitive and will accept both lower and upper case.
- The file should always end with either the last color or white space.
- The spacing for the white and yellow faces can be present and is recommended for manual input, but is not necessary.
| Color | Letter |
|---|---|
| White | W |
| Orange | O |
| Green | G |
| Red | R |
| Blue | B |
| Yellow | Y |
WWW
WWW
WWW
OOOGGGRRRBBB
OOOGGGRRRBBB
OOOGGGRRRBBB
YYY
YYY
YYY
YBR
RWR
OYB
GYGWBOWGWGWR
OOGOGRWRGYBW
GYOYWWBOBYBO
BGR
OYB
YRR
cabal run