OpenGL

Can anybody please explain the code of rubix cube simulation

Did you want just the simulation? Or the solution as well?
Jeff