Project for the Intelligent Systems' subject, at Escuela Superior de Informatica in the UCLM University.
This project consists on solving a rubik's cube applying searching algorithms and strategies.
In order to be able to execute the program you should have installed on your computer Python3.
Also some packages are going to be used by the program. Take into account that some of them have to be installed in order to be able to use them. The following packages are used by the program:
Installing Python3 in Ubuntu it's an easy task:
$ sudo apt-get update
$ sudo apt-get install python3.6
$ sudo pip install sortedcontainer
$ sudo pip install numpy
Now we are going to execute the program. To do that we have to be either in the project folder (rubiks-cube) or the source code folder (rubiks-cube/src).
In both cases we are going to execute the Main.py file that is in the src folder.
For the first one the execution will be as follows:
$ python3 ./src/Main.py
For the second option, will be like this:
$ python3 Main.py
Any other way of executing the program could lead to problems in the project resources management.
Now you just have to follow the instructions given by the program:
- Select the json of the cube to be used in the program
- Select the searching strategy to find the solution
- Choose if you want to use pruning or not
- Wait for the solution
- You can consult the solution of the cube in the project's folder output: solution.json shows the final result of the cube solution.txt has the information of the path to reach the solution.