Austin Allman
PortfolioBitbucketResumeContact


This was an experiment to see if I could program a rubiks cube with only access to variables A-Z and a few built in system variables. The challenge was to get 54 numeric values stuffed into a limited number of variables.

Ultimately the solution I came up with was to have each digit of a value represent 1 face and have the variable it was stored in represent one piece. Then using math to rotate the digits accordingly I would pass them to other variables.

Below are all of the notes I scribbled together to allow me to even comprehend what I was making.


The top half of the first image are coordinates for where to draw both the numbers and the lines. The bottom half is visual representation of what the default values were for the variables.

In the second image I drew out and color coded a cube to show where the dominant digits would be. If I was to for instance rotate the left most face I would need to swap the green and the red digits for 2 of the values in order for the data to be presented correctly.


Links: