Rubik's cube rotation program | ru |
download java program |
download source code |
This program is useful for studying of different Rubik's cube solution methods and other similar problems. You can see the result of different rotation strings, for example x' R (RU)' D R U R' D' R U R' D R U' R' D'. Notation of rotates is standard, you can see them by reference http://www.rubiksplace.com/move-notations. Program checks OLL and PLL stages of Fridrich method and create pictures for them. You can see sample here. There is very similar online program which is written using javascript and does not require downloading and installation.
One can use rotations L, R, U, D, F, B which rotates left, right, up, down, front and back edges by 90° clockwise if view from rotated edge. Input string is case insensitive. Empty symbols spaces and tabs are allowed they will be ignored. It's possible to use next postfix symbols
- Apostrophe - means anticlockwise rotation, that is L' mean rotate left edge by 90° counterclockwise
- Two - means rotate by 180°, for example, L2
- W - means rotation with middle layer LW
Middle layer rotations.
- M - rotate layer between left and right edges. This is clockwise rotate if vew from left edge.
- S - rotate layer between front and back edges. This is clockwise rotate if vew from front edge.
- E - rotate layer between up and down edges. This is clockwise rotate if vew from down edge.
Whole cube rotations.
- X - rotation around the X axis. Rotate right edge with whole cube.
- Y - rotation around the Y axis. Rotate up edge with whole cube.
- Z - rotation around the Z axis. Rotate front edge with whole cube.
Parentheses and apostrophe. It's possible to use round brackets with power and/or apostrophe. Postfix can be omitted. Apostrophe means inversion. (R)=R, (R)3=R', (R'U)'=U'R, (RU)'2=(U'R')2=U'R'U'R'