(almost) Fully functioning interactive animated cube #2

merged 7 commits into from Nov 27, 2012

2 participants


Here's my progress: I'm pretty excited by it!

Run code/cube_interactive.py to see the cube in action. Faces can be turned using the UDLRFB keys, holding shift for counter-clockwise. Holding 1, 2, etc. will turn a slab at the specified depth. The solve button doesn't do anything sophisticated at the moment: it simply reverses the current list of moves.

A strange "feature" currently is that the cube is just a shell, so you can see through the inner faces when they're part-way turned.

All-in-all, I'm pretty happy with this, and impressed that matplotlib can do this in just a few hundred lines of code!

@davidwhogg davidwhogg merged commit 0c2d023 into davidwhogg:master Nov 27, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment