Friday, May 1, 2020

The cruel irony of all this is I'm awful at Tetris

I've been playing with a set of hexominoes a lot recently. It seems the bottom of the barrel wasn't as thoroughly scraped as I'd previously thought.
It turns out there are a family of shapes that approximate hexagons with angles of 90 and 135 degrees that are just as versatile as rectangles, if a little less pleasing to the eye (especially if you're not too fussy about them having a few holes in 'em.) These also have an added bonus: the diagonal edges make these a slightly more challenging solution than squares and rectangles.

Again, odd x odd bounding boxes seem to work best with this, because an even width or height would mean a line of symmetry bisecting the entire shape into two congruent 110-cell sub-shapes, which would mean the overall shape has balanced checkerboard parity. So with the aid of a hideous and confusing spreadsheet I knocked together, I found the following set of solvable problems:

3x73 - 9 holes
Yeah no. I think we can generally rule out the possibility of any purely 3xn constructions with hexominoes. I roughly outlined my reasoning here (but that's not a rigorous mathematical proof so it could well be wildly incorrect...)

5x54 - 3 holes
Pros: At this width solving these shapes feels not much different from solving a normal rectangle.
Cons: Solving a width 5 rectangle isn't exactly a walk in the park.


7x35 - 11 holes
At this point there's a sort of 'choose your own difficulty' option built in - with the difficulty levels being hard, harder and hardest, naturally. Two immediate options for arranging the 11 internal holes are having them as one big 11-omino, or as a line of 11 individual monominoes. The long 11-omino option creates two stretches of treacherous 3xn space which takes a bit of doing:


Whereas the individual holes introduce all manner of feisty challenges.


This one's left as an exercise for the reader. I spent a little while trying to solve it and got fairly close, but not close enough. I think I gave it like 45 minutes or so and wound up with like 6 pieces remaining a few times. But they were never nice pieces.

9x29 - 11 holes


This one was tough, although in hindsight this could be because of a complete lack of solving strategy. The obvious (looking back now) thing to do would have been to solve the ends first, then either the top half or the bottom half of the middle (if we think of the row of holes as a dividing line), trying to leave a fairly convex-looking endgame to be filled in last with the 2x2-block-y pieces. Instead I just went at it the way a nine-year old would his first all-you-can-eat buffet, and I paid for it dearly by spending maybe close to two hours (!) getting those last few bits in.
You know you've utterly stuffed it when you're down to the last five pieces and one of them is the stair-step hexomino (as it's known in Conway's Game of Life terminology).

11x25 - 5 holes
This is the start of the sweet spot, so to speak. Wide enough so that the central holes don't get in the way too much, but not so wide that there's miles of diagonal edge to contend with.


Of course, the fact that there's only 5 holes maybe makes this a little easier too. You could just as easily do this with the holes arranged vertically. Or with one bigger hole shaped like a pentomino of your choice.

13x23 - 5 holes


Can be done with the five holes the other way on. (So can the 11-height one but I didn't think of it at the time.)

I think there is a 15xn possible but it's going to have like 17 holes or something, and I think there's a point where unless you can arrange them in a particularly pleasing way it just gets silly. So I'll skip over this and go straight to...

17x21 - 3 holes and 19x21 - 9 holes
No solution images here, for the simple reason that I just plain can't be arsed. If you want them that badly, acquire a set of hexominoes and have a go at finding them yourself. More fun than looking at a picture of someone else's solution, guaranteed. Or feed them into a solver program, they'll eat these for breakfast.

And finally, 21x21 - 11 holes
This is just a rotated square at this point. And I've seen a solution for this on the internet somewhere, with the 11 holes as the straight 11-omino dead centre. As far as I can remember it was illustrating something to do with parity imbalance, and this was the example where the difference between black and white squares is exactly ±22, the maximum permissible. I assume that the restrictions that places on parity-imbalanced pieces means it's a head-bendingly difficult solution.

[EDIT: The solution I saw somewhere was here, on page 9 of Chessics, issue 28]


(The above solution was found using a computer search. Because it sounded like it might be difficult to do, and I'm always one to back down from a difficult challenge when one presents itself.)

Sunday, April 12, 2020

One Whole Year (of this nonsense)

...give or take a couple of days. April 4th 2019 was the first post on here so it's like a year and a week or so, but whatever, close enough. Honestly I'm surprised it's still going, when I first started out I had a suspicion I'd quickly run out of things to write about. And while I've long since ran out of interesting things to write about, that's a whole 'nother matter...

Having said that, there's potential for covering new ground yet. Since discovering the joy of custom laser cutting I've made various new sets of things, polytans, polyiamonds, I even made a physical set of those 3½-ominoes I posted about a while back, replacing my original set that I'd cut out of the card from a box of cereal bars.

Anyway, for old times' sake, here's another heptomino construction. When I first started this blog one of my little ground rules was to include an image with every post, because when I was a teenager and first getting into polyominoes in a big way I gravitated to the sites like Andrew Clarke's Poly Pages with heaps of pictures all over them. Except I never understood why nearly every site seemed to use that greeny brown colour for all the illustrations. The international standard colour scheme for polyforms, I guess.
Fig. 1: The heptominoes in a long skinny hexagon with a single central hole.

Tuesday, March 31, 2020

Concentric Rectangles

I'd like to blame the fact I'm stuck indoors avoiding the Coronavirus for this one, but realistically I'd have probably found the time to solve this anyway, given that I lead such an exciting life:


It's an awful photo, but here's the gist of it. Imagine a 7x9 pentomino rectangle (with a little 3-cell hole) inside a 13x21 hexomino rectangle, inside a heptomino rectangle I can't remember the dimensions of and can't be arsed to count, all surrounded by the octominoes (plus 8 holes) in a whopping 47x85 rectangle. And that's what I spent an entire afternoon doing. Well, two sittings with a break for dinner in the middle.

It would maybe have been a bit nicer if I'd started with a central monomino and worked my way up through all polyomino sizes, a la Karl Wilk's Polyominium, but there didn't seem to be a way of doing it that yielded such nice symmetrical layers like this. It's difficult to wrap a pentomino rectangle around a hole big enough for just the tetrominoes, let alone anything else.
In fact, when I had the original idea that became this, it was born out of the fact I'd built a hexomino pattern that just happened to be able to fit the 7x9 rectangle inside.

A sort of precursor solution found way back.
Peeps with a keen eye will have spotted that the pent-, hex- and heptomino sections of that early solution are totally different to the ones this time round - more a testament to how bored I was than anything else.

Fun fact about the 7x9 pentomino solution: when the triomino hole is vertical there are 360 possible solutions, whereas with the horizontal hole there are a mere 150 (excluding rotations, reflections and all that jazz.)

Here's the full solution drawn up so you can actually see where one piece ends and another begins:

And there's a little voice inside me saying "What about a layer of nonominoes?" but realistically I'm not going to be able to do that without a physical set of them and that ain't gonna be cheap. Besides, there's not a flat surface in my house big enough to hold all those pieces.

Friday, March 27, 2020

Octiamonds

Polyiamonds are tricky. Even the smaller sets seem harder than their similarly-sized polyomino counterparts. Hexiamonds, for example. There's 12 of them, same as the pentominoes, and in a geometric sense they don't seem any more jagged or otherwise unruly, but for whatever reason solving anything with them seems a lot harder.
I mean, it could just be that I'm more used to polyominoes and that a sort of intuition for other polyforms would build naturally with time. And with polyominoes I know all the handy tips and tricks, which pieces (or types of pieces) are most useful in which situations, whereas with polyiamonds I don't have that (yet).
With larger sets of polyominoes, (i.e. hexominoes and above) a technique emerges of saving the more cooperative shapes for the end game, and as the sets get larger this pool of 'nice' pieces increases rapidly in size. But with (say) octiamonds it's not so obvious which shapes are the most useful. They're all pretty hideous, actually, at least to the untrained eye. The little hexagon made of six triangles is the closest analogue I can think of to the 2x2 square block that makes for nicely-behaved polyominoes. But there are only 4 out of 66 octiamonds which contain it and even these 4 pieces don't play especially nicely together with each other.

So the solution below was the result of about an hour and a half of stumbling about cluelessly followed by a flash of pure luck.
Fig. 1: The 66 octiamonds in a 12x22 parallelogram.
 Another fun fact: Drawing these out neatly is really hard too. Pixel art and triangles don't mix too well.

Thursday, March 5, 2020

Finally! Truncated 55x55 Square with Octominoes


Third time lucky, eh?
Getting that central 13-hole configuration to work was surprisingly tricky - they're too close together to just treat as individual holes, sling a holey octomino around some of them and be done with it.*

Then throughout the rest of the solve I had in the back of my mind a little nagging concern that maybe some issue like parity would render this solution impossible anyway. The octominoes as a full set have no glaring issues the way the tetrominoes and hexominoes do, but the 363 non-holey ones are imbalanced when checkerboard-coloured. And since I'd used the 6 holey pieces first I was in effect left with this imbalanced set. I assumed (well, hoped) that since the construction's dimensions were odd x odd this might negate the issue; I use this as a rule of thumb for hexomino constructions because it usually means that the overall structure is sufficiently unbalanced and therefore solvable.
Whether this makes any sense mathematically I have no idea.

Total solve time was approximately 5 hours spread over a few days. Total time drawing up the digitised image of the solution probably took another hour on top of that, come to think of it.

---

* This construction by David Bird does something similar, there's probably only a handful of ways of accommodating those holes in that shape.

Monday, February 24, 2020

placeholder title

After playing with octominoes for a bit, returning to the trusty ol' heptomino set is a strange feeling indeed. All the pieces are so tiny and simple in comparison, and suddenly 108 feels like such a reasonable, manageable number.
I made this, which has the maximum possible symmetry for a heptomino pattern.

Fig. 1: 28x28 with 28 holes.
This was a surprisingly painless solve too (although anything would feel that way after octominoes) - the last pieces all fitted into place on practically the first attempt and the whole solve couldn't have taken much more than half an hour. (And now there's an awful idea: speed-solving polyominoes!)

And here's some assorted hexomino things from 2019 that never made it onto the site because they weren't particularly challenging or interesting.

But these are the lengths you gotta go to when you've been too busy recently to do any interesting polyomino stuff but don't want to completely abandon the blog.

Saturday, February 1, 2020

34x87 Octomino Rectangle

How to create a 34x87 rectangle with Octominoes (a handy guide)

Step 1: Solve 90% of a 37x84 rectangle, then wonder why there's so much space left over and not enough pieces to fill it (37x84 = 3108, which is slightly overshooting the octominoes' 2952+6 total area.)

Step 2: Despair for a little bit. Even with a physical set of pieces I find ways to screw things up.

Step 3: Salvage a nice big chunk from the starting corner of the failed solution (the corner where all the scariest, hardest to work with pieces live), and use this as the basis for a new rectangle with the correct dimensions this time...

Fig. 1: Success!