Skip to content

Generates scrambles to a specific state using Herbert Kociemba's two phase solver

Notifications You must be signed in to change notification settings

LeedsJohn/Scramble-Generator

Repository files navigation

Scramble-Generator

Generates scrambles to a specific state using Hebert Kociemba's two phase solver. This project would not be possible without his work which you can see here:

https://github.com/hkociemba/RubiksCube-TwophaseSolver

I wrote this project to generate scrambles to specific states for an algorithm trainer.

Usage

In the Data folder, create a .txt file containing the name of the algorithm and the algorithm on alternating lines:

image

From this, you can use StateGenerator.py to create a file with the end states that you would like to generate scrambles to. These end states are represented in the same way that Herbert Kociemba represents Rubik's cubes

image

Finally, you can use this file to create a json file of scrambles using ScrambleGenerator.py:

image

Options

In ScrambleGenerator.py, there are several options you can change.

NUM_SCRAMBLES: this number represents how many scrambles will be generated for each algorithm.

SOLVE_TIME: how much time you give the cube solver to find a solution

MOVE_COUNT: a desired move count - the cube solver stops once it finds a solution that is this length or shorter

RANDOM_AUF: whether a random auf should be applied to the cube (boolean)

About

Generates scrambles to a specific state using Herbert Kociemba's two phase solver

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages