Skip to content

Instantly share code, notes, and snippets.

Patrick Blesi pblesi

Block or report user

Report or block pblesi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
def _init_pieces
  pieces = []
  BasePieces.each do |base_piece|
    Flips.each do |flip|
      Orientations.each do |orientation|
        pieces <<, flip, orientation)
pblesi / dominopeg_puzzle_solver.rb
Last active Feb 5, 2017
A solver for the dominopeg wood puzzle
View dominopeg_puzzle_solver.rb
#!/usr/bin/env ruby
# Solves [dominopeg puzzle](
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]},
You can’t perform that action at this time.