Picture
Overview
There really isn't much practical purpose to making a Rubik's cube simulator.  It's a topic that has been beaten to death....and one that has been done much, much better than my implementation.  But hey, sometimes 'it works' is 'good enough'.  And really, by the time I'd gotten this far along I really stopped caring.  


Anyway, the cube class provides a simple interface to manipulating the cube faces of the cube.  Either by index or by color.  
1.
2.
3.
4.
5.
6.
7.
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
 
        myCube.Faces(myRand.Next(0, 6)).TurnLeft()
        RefreshGuiCube()
 
End Sub
cube.zip
File Size: 84 kb
File Type: zip
Download File