tangrams.app

Tangram solver

Give it an outline; it searches for a way to fill it with the seven pieces.

Example: 0,0 2r,0 2r,2r 0,2r

How to enter an outline

  1. Write the corners in order, in units of the small triangle's leg: "0,0 4,0 4,2 0,2". Use r for √2, so 2r means 2√2.
  2. The outline must have the area of the full set: 8 squares of the small leg.
  3. The search tries every piece in every turn at the top-left free corner and backs up when stuck; it stops after 300,000 steps.
Why does it say no solution?

Either the outline cannot be filled with the seven pieces, or it needs pieces off the 45° grid, which this solver does not try.