Download and Install Processing 3: https://processing.org/download/
If you have git installed, type the following into your terminal:
git clone https://github.com/Code-Bullet/RubiksCubeAI.git
Else, download the zip file and unpack by clicking the green "Clone and download" button on the top right of the screen.
- Open the Processing application
- Click
File > Open
- Go to where you downloaded the files for this repository, the folder should be called
RubiksCubeAI
- Inside the
RubiksCubeAI
folder there should be another calledRubiksCube
- Inside the
RubiksCube
folder click on the file calledRubiksCube.pde
- You should now see
RubiksCube.pde
as well as the rest of the files opened up in the Processing application - Press the Run button or click
Sketch > Run
- Open
RubiksCube.pde
in the Processing application. It is located at.RubiksCubeAI/RubiksCube/RubiksCube.pde
. (See Open The Project Files for additional information) - Press the Run button or click
Sketch > Run
- Press
L
to Lock/Unlock the cube - Press
Space
to initially scramble the cube - Press
Space
again to watch the program unscramble the cube
Open RubiksCube.pde
in the Processing application. It is located at. RubiksCubeAI/RubiksCube/RubiksCube.pde
. (See Open The Project Files for additional information)
On line 8, modify the variable called numberOfSides
//dont do even sized cubes (it wont work)
//Have fun
int numberOfSides = 25;//<<< change this to change the size of the cube
It is initially set to 25
, if you want the standard 3x3 Rubik Cube set numberOfSides
to 3
.
//dont do even sized cubes (it wont work)
//Have fun
int numberOfSides = 3;//<<< change this to change the size of the cube
Open RubiksCube.pde
in the Processing application. It is located at. RubiksCubeAI/RubiksCube/RubiksCube.pde
. (See Open The Project Files for additional information)
On line 96, modify the function called size(1000, 1000, P3D);
size(1000, 1000, P3D);
//size(2000, 2000, P3D); //if you've got a 4K monitor then you can uncomment this out to have a bigger window, also make sure to comment out the line before
The first number is width and second number is height in pixels.
Modify these to match your screen resolution.
If you are unsure of your screen resolution go to: http://whatismyscreenresolution.net/
If your screen resolution is 1920x1080 modify line 96 like so:
size(1920, 1080, P3D);
//size(2000, 2000, P3D); //if you've got a 4K monitor then you can uncomment this out to have a bigger window, also make sure to comment out the line before