Rubiks Cube Solver
- 4 Devlogs
- 10 Total hours
A 3d printed robot to solve any rubiks cube scamble using a custom algorithm!
A 3d printed robot to solve any rubiks cube scamble using a custom algorithm!
added streamlit compatibility. streamlit is very mad at me.
I know this one is short, but I just want to keep things nice and tidy for when I start my solving algorithm.
Changes:
and with that… LET THE GRIND BEGIN
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!