You are browsing as a guest. Sign up (or log in) to start making projects!

1h 42m 3s logged

Today is the first day of software development for this project… first up is representing the cube’s state with code. I created a list of faces (6), where each face is a 3x3 matrix comprising of 9 squares. I spent a lot of time figuring out what would be the correct orientation and ordering of each face, but I think I have come to a happy compromise. For rotations, I kept trying to come up with some fancy matrix operation to transform 4 faces at the same time, but I ended up just creating a table of pieces to move for each operation and fetching that every time (if it works dont fix it). Finally, I created a function to turn the standard notation into a list of operations for my virtual cube. My next step is creating a visual representation of the cube in 2D!

0
32

Comments 0

No comments yet. Be the first!