4 ms·
It only took you a few minutes, together with your daughter, to write code that lets you interact with a Rubik's Cube? Or were you only referring to the solver
by timjver 9y ago
It only took you a few minutes, together with your daughter, to write code that lets you interact with a Rubik's Cube? Or were you only referring to the solver part?
- tripa 9y agoEven the solver part is impressive. A BFS is a few seconds, but modeling a Rubik's cube properly in a way a daughter would understand is... harder.
- pge 9y agoYes, that part was over her head. I did all the coding, and the representation of the cube and the moves. She got the concepts of the search, but capturing the changes in the cube when a face is rotated was too complicated to do with her.
- pge 9y agoIt was just a simple solver - you typed in the faces at a command line, and it spit out the moves. It was brute force breadth-first, so nothing fancy...