Pentomino tiling: Difference between revisions

Content added Content deleted
mNo edit summary
m (→‎{{header|Java}}: correction)
Line 108: Line 108:


for (int i = 0; i < shapes.length; i++) {
for (int i = 0; i < shapes.length; i++) {
for (int[] orientation : shapes[i]) {


if (!placed[i]) {
if (!placed[i]) {

for (int[] orientation : shapes[i]) {


if (!tryPlaceOrientation(orientation, row, col, i))
if (!tryPlaceOrientation(orientation, row, col, i))