cube_scrambler 0.3.0

Cube Scrambler is a simple yet effective random-move scramble generator API and CLI for 2x2x2, 3x3x3[default], 4x4x4, 5x5x5, 6x6x6 and 7x7x7 Rubik's Cubes, written in Rust. It ensures no two consecutive moves are the same, providing an unpredictable and challenging scramble.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
mod cli;

use cli::parse_arguments;
use cube_scrambler::generate_scramble;

fn main() {
    let (n, cube_type) = parse_arguments();

    match generate_scramble(n, cube_type) {
        Ok(scramble) => println!("{}", scramble.join(" ")),
        Err(e) => {
            eprintln!("Error: {}", e);
            std::process::exit(1);
        }
    }
}