Skip to content

Lab project for the Intelligen Systems' subject - Escuela Superior de Informatica - UCLM

Notifications You must be signed in to change notification settings

sagzain/rubiks-cube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rubiks-cube

Introduction

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.

System requirements

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:

  1. json
  2. hashlib
  3. os
  4. sys
  5. numpy
  6. copy
  7. sortedcontainers

How to install Python3

Installing Python3 in Ubuntu it's an easy task:

$ sudo apt-get update

$ sudo apt-get install python3.6

How to install packages

Sortedcontainers

$ sudo pip install sortedcontainer

Numpy

$ sudo pip install numpy

Executing the program

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:

  1. Select the json of the cube to be used in the program
  2. Select the searching strategy to find the solution
  3. Choose if you want to use pruning or not
  4. Wait for the solution
  5. 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.

About

Lab project for the Intelligen Systems' subject - Escuela Superior de Informatica - UCLM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages