Expand description
§cube-rust
A fast, self-contained Rust library for Rubik’s Cube solving and state manipulation.
§Quick Start
use cube_rust::{Cube, CubeSolver};
// Initialize a cube in standard solved state
let cube = Cube::default();
// Apply moves
cube.apply_maneuver("R U R' U'").unwrap();
// Verify solvability
assert!(cube.is_solvable());
// Solve the cube
match cube.solve() {
Ok(sol) => println!("Solution: {sol}"),
Err(err) => eprintln!("Error: {err}"),
}Structs§
- Cube
- An opaque domain type wrapping a 54-facelet cube configuration string.
- Cube
Solver - A builder for configuring and executing Rubik’s Cube solving operations.
Constants§
- CUBE_ID
- The 54-facelet string representation of a solved Rubik’s Cube (U, R, F, D, L, B).
Functions§
- permutation
- Converts a color cube or move sequence into its structural permutation string representation.