View blog_post_snippets_01_dominopeg_puzzle_solver.md
def _init_pieces
  pieces = []
  BasePieces.each do |base_piece|
    Flips.each do |flip|
      Orientations.each do |orientation|
        pieces << Piece.new(base_piece, flip, orientation)
      end
    end
  end
View dominopeg_puzzle_solver.rb
#!/usr/bin/env ruby
# Solves [dominopeg puzzle](http://www.puzzlemist.com/dominopeg.html)
BasePieces = [
{id: "0", spots: [0, 1]},
{id: "1", spots: [0, 2]},
{id: "2", spots: [0, 7]},
{id: "3", spots: [0, 8]},
{id: "4", spots: [0, 9]},