The following is a program for solving Rubik's cubes in the console written in python3. By Default the solver will work with a randomly scrambled cube hower this can be modified. To modify the cube being solved go into the main.py file and change the following variable to the representation of the cube you want.
cube = RubiksCube(
state="rrrwrwrgryrywwwwrwbrbggggggwowyyyyyygygbbbbbbooobooooo"
)
You can also adjust your heuristics globals found at the top:
MAX_MOVES = 5 #max amount of moves when building heuristics map
NEW_HEURISTICS = False #control for overwritting heuristics
HEURISTIC_FILE = 'heuristic.json' #file that the heuristics are saved in or need to be saved in
step 1: open your console
step 2: create a virutal enviroment
step 3: type the following command:
pip install -r requirements.txt
step 4: type the following command:
cd <app directory>
step 5: type the following command:
python3 main.py
step 6: type in the action you wish to perform