Skip to main content

apply_moves

Function apply_moves 

Source
pub fn apply_moves(facelet: &String, cube_moves: &String) -> Option<String>
Expand description

Apply moves to a Rubik’s cube represented by facelet

§Arguments

  • facelet - the Rubik’s cube to be moved, must be a solvable Rubik’s cube
  • cube_moves - should match ([URFDLB][123'] ?)*

Return facelet of the moved cube on success