Polyomino puzzle solver

Buttons

  • "Try example solution" button runs example solution with predefined pieces and board sized 8x8.
  • "Solve" button tries to find a solution. If there are multiple solutions, each click on this button will draw the next solution.

Instructions

  1. Open up your browser console.
  2. Add pieces by calling Solver.addPiece(); where first parameter is array of coordinates objects and second is optional color. Examples:
    Solver.addPiece([{ x: 0, y: 0 }, { x: 0, y: 1 }], 'green');
    Solver.addPiece([{ x: 0, y: 0 }, { x: 0, y: 1 }, { x: 0, y: 2 }], 'grey');
  3. Create solver board by calling Solver.createSolver(); with an array where first element is the board width and second is board height, like so:
    Solver.createSolver([1, 5]);
  4. Now to find the solution, either click the "Solve" button or run the 'solve' command manually:
    Solver.solve();

For more information about usage and other details, please see the GitHub repository.