At a recent get-together with friends, I found myself playing with a wooden puzzle consisting of 6 pieces that were claimed to be able to come together to form a solid cube.
Lucy, the puzzle’s owner, said she had owned it for years and never successfully solved it. Not to be detered, I spent the whole evening failing to get anywhere with it.
Continuing not be detered, I decided to do the honorable geek thing and write a computer program to solve it.
Herewith how I approached the problem and got started with ruby. (more…)
