Skip to content

A library focusing on processing moves for 3x3 Rubiks cube

Notifications You must be signed in to change notification settings

roboteng/rubiks-moves

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rubiks-moves

A crate for manipulating algorithms for the Rubik's cube, and speed-cubing

Examples

use rubiks_moves::moves::Algorithm;

let sexy = Algorithm::from("R U R' U'").unwrap();

assert_eq!(sexy.order(), 6);
use rubiks_moves::moves::Algorithm;

let scramble = Algorithm::from("R' U' F D2 L2 F R2 U2 R2 B D2 L B2 D' B2 L' R' B D2 B U2 L U2 R' U' F").unwrap();
let solution = Algorithm::from("D2 F' D2 U2 F' L2 D R2 D B2 F L2 R' F' D U'").unwrap();

assert!(solution.solves(&scramble));

License: MIT

About

A library focusing on processing moves for 3x3 Rubiks cube

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages