Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 733 Bytes

File metadata and controls

21 lines (14 loc) · 733 Bytes

RubiksCube

Computer Graphics - Assignment 2

Usage:

  • Arrow keys to rotate the cube by 45 degrees accordingly.
  • L/R to rotate a wall left or right
  • U/D to rotate a wall up or down
  • F/B to rotate a wall front or back.
  • A to multiply the rotation angle by 2, up to 180.
  • Z to divide the rotation angle by 2, down to 1.40625.
  • Use the numbers 1 - MATRIX_SIZE to select the wall index you would like to rotate.
  • Click M to mix the cube. S to solve the cube.

cube

  • It is possible to change the cube size from 2 to 9, change global variable MATRIX_SIZE:

cube2