Skip to content

Commit

Permalink
Record baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
calebeby committed May 8, 2023
1 parent b361c96 commit 08464f3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions rust/src/solver/metamove_solver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,11 +286,15 @@ mod tests {
fn solve_rubiks_3x3() {
let puzzle = Rc::new(puzzles::rubiks_cube_3x3());

let mut rng = ChaCha8Rng::seed_from_u64(1005);
let mut rng = ChaCha8Rng::seed_from_u64(1);

let mut sum = 0;
let mut num_solves = 0;
let num_scrambles = 20;
let num_scrambles = 50;
// Baseline: 30/50, took 1m 57s to run:
//
// 3x3 solution length: 260 turns
// avg 3x3 solution length: 384.6 turns, (30 / 50)
for _ in 0..num_scrambles {
let scrambled_state = puzzle.scramble(&puzzle.get_initial_state(), 20, &mut rng);
let solution: Vec<_> =
Expand Down

0 comments on commit 08464f3

Please sign in to comment.