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');
Solver.createSolver();
with an array where first element is the board width and second is board height, like so:Solver.createSolver([1, 5]);
Solver.solve();
For more information about usage and other details, please see the GitHub repository.