Skip to content

Instantly share code, notes, and snippets.

@cacharle
Last active March 21, 2024 10:41
Show Gist options
  • Save cacharle/24a7c825045393972875eb5cd262b98a to your computer and use it in GitHub Desktop.
Save cacharle/24a7c825045393972875eb5cd262b98a to your computer and use it in GitHub Desktop.
rubik's cub OLL and PLL algorithms

OLL

Sune:

if one yellow facing up, put in on the front so that we see another yellow facing toward.

toward stikers right: R U R' U R U2 R'
toward stikers left : L' U' L U' L' U2 L (anti sune)

No corner facing up

yellow head light opposite to each other
F (R U R' U')3 F'

yellow head light and not opposite (do on side of headlight)
R U2 (R2 U' R2 U' R2) U2 R

Corner diagonal facing up

put corner facing up on right so not facing up corner yellow can be seen
x (R' U R D') (R' U' R D)

Corner next to each other facing up

if not solved face opposite direction:
put solved on the right
x (L U R' U') (L' U R U')

if not solved headlight:
headlight facing front
R2 D (R' U2 R) D' (R' U2 R')

PLL

Corners

All different => diagonal swap
(F R U' R' U' R U R' F') (R U R' U' R' F R F')

One side has same color stickers but not the other ones (Adjacent corner swap)
unsolved on the right
(R U R' U' R' F R) (R U' R' U' R U R' F')

Edges

if one already solved (3-edge cycle) solved in back
if right edge need to go to the opposite side
(R U' R U R U R U' R' U' R2)
if left edge need to go to the opposite side
(L' U L' U' L' U' L' U L U L2)

both opposite need to swap
M2 U' M2 U2 M2 U' M2

no edge solved, next to each other need to swap
M' U' M2 U' M2 U' M' U2 M2 (M' is upward)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment