This project is the simulation of 3D Rubiks cube which is done using C and OpenGl Library.
sudo apt-get install freeglut3-dev
sudo apt-get install make
make
./rubiks
This Rubiks Cube simulation is controlled using Keyboard. The different controls are -
Esc
: Quits the simulation windowa
: Rotates Leftd
: Rotates Rightw
: Rotates Ups
: Rotates Downt
: Rotates Top clockwise
T
: Rotates Top anti-clockwise
c
: Rotates Middle from top clockwise
C
: Rotates Middle from top anti-clockwise
v
: Rotates Bottom clockwise
V
: Rotates Bottom anti-clockwise
f
: Rotates Front clockwise
F
: Rotates Front anti-clockwise
m
: Rotates Middle from Front clockwise
M
: Rotates Middle from Front anti-clockwise
b
: Rotates Back clockwise
B
: Rotates Back anti-clockwise
l
: Rotates Left clockwise
L
: Rotates Left anti-clockwise
x
: Rotates Middle from Left clockwise
X
: Rotates Middle from Left anti-clockwise
r
: Rotates Right clockwise
R
: Rotates Right anti-clockwise