Genome — Large · Medium · Small classes (one gene = one piece type)
Press Decode to run step by step.
Sheets
Free rectangles
—
Chosen rect
Placed (batch)
Free rect
Batch≥2 rect fits ≥2 copies
Gene: W×H ×N = type dims & count [L/M/S] = Large / Medium / Small
Grid: row-major if hole(row) ≤ hole(col), else col-major.
Same-sheet pref. per gene; batch≥2 pref. when remaining>1.