Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 1.23 KB

README.md

File metadata and controls

10 lines (7 loc) · 1.23 KB

Roadblock

We visited the National Building Museum in Washington DC and my oldest son picked out a game called Roadblock in the gift shop. I was initially turned off by the subject matter, but the first time we played it I was intrigued by the puzzles and some questions I had about them:

  1. How many starting board permutations are possible with this set of pieces?
  2. What determines the difficulty of each starting board?
  3. Each starting board published in the Roadblock instructions has only only solution. Are there starting boards with multiple solutions? How many?

In seeking some answers to my questions I discovered polyominoes and the recursive backtracking algorithms used to solve polyomino puzzles. In particular, Matt Busche's Polycube turned out to be a great resource to help answer some of these questions.

So I created a simple ruby wrapper around the polycube binary called polycube-rb, and this repository to help answer some of the questions above.