Solves a 3x3x3 Rubik's cube using Kociemba's algorithm
a configuration will be entered from standard input
a pattern will be entered from standard input
The input should give the successive faces as follows:
L U R D
although different letters can be used. So first the first 9 faces of B, followed by 3 faces of L, U, R and D all three times, followed by the faces of F. The program will give the translation between the symbols actually used and the symbols used in the solution. So you might give the faces in the order
L F R B
but the program will use the translation T -> B -> D -> F -> U! Error messages about wrong position are *after* translation!
A pattern can be entered in the following format, where a solved cube is represented by
Whitespace and newlines can be omitted and the * is required to start the program.