~Abduraghmaan Gabriels 2020
A Simple 3x3 Rubiks cube solver developed in Java
Uses the Half-Turn Metric system and does not include slices
(does not rotate the middle layer in any of the axis)
Make sure you have Maven and Java JRE version 8 (minimum requirement) installed
then open your command line and run:
sh compile.sh
alternatively:
clear && mvn clean && mvn package
Note: all '/' must be replaced with '\' when running in windows command terminal (cmd.exe)
- Arguments:
java -jar target/rubik-1.jar <flags> <starting scramble>
- Starting Scramble:
U D L R F B
for clockwise rotations of the relevant facesU' D' L' R' F' B'
for anti-clockwise rotations of the relevant facesU2 D2 L2 R2 F2 B2
for double rotations of the relevant faces
- Flags:
-i Manual input mode
-l Output each result on a new line
-n Do not display the solution
-o No visual representation of cube
-v Display visual state of cube after each instruction
-s AutoScramble on, accepts a numeric parameter for number of scrambles
-p Display Solution in different stages
- in manual input mode:
java -jar target/rubik-1.jar
java -jar target/rubik-1.jar -i
- for scrambled input:
java -jar target/rubik-1.jar -s
java -jar target/rubik-1.jar -s 40
- for pre-determined scramble:
java -jar target/rubik-1.jar "B U' R D2 F L2"