We created a 2x2 Rubik Cube in Java where users can simulate a Rubik cube. We added a feature where users can access our algorithm to solve the Rubik cube (as long as the cube meets our requirements).
Inspiration: I had a Rubik cube, but I didn't know how to solve it and so I thought it would be cool to make a program to solve it for me.
What it does: Solves a 2x2 Rubik cube and users are also able to simulate a 2x2 Rubik cube.
How we built it: We built it using Java and a bunch of arrays. Each set of arrays would simulate a side of the cube. There would be a total of 6 sides and those 6 sides would form into the Rubik cube.
Challenges we ran into: To solve just for the white side (bottom side), there is no specific algorithm to solve it. There are over 3.6 million combinations and so in the time period of what we have, so we created an algorithm where there is only one requirement (white pieces are together) of what the users need to finish themselves, for the solver to work.
Accomplishments that we're proud of: We were fully able to simulate the movement of the Rubik cube so that users can move their Rubik cube however they want. We also created an algorithm that is able to solve any 2x2 Rubik cube as long as the cube met a certain requirement (white pieces are together).
What we learned: We learned a lot of algorithms that could solve a 2x2 Rubik cube if the pieces were in a specific pattern. We also learned how to simulate a 3-D object using a bunch of 2-D arrays.
What's next for Rubik Cube Solver and Simulator (2x2): We wanted next to try to fully complete an algorithm which would also solve for the white side. After we finish this, we wanted to make the algorithm work in an interactive website instead of just using an IDE. Then after that, we would want to make an algorithm for a 3x3.
Log in or sign up for Devpost to join the conversation.