Subject: Day 21: I had an insight and then it got ugly
Author:
Posted on: 2017-12-21 17:52:00 UTC

The code

Now, the neat thing here is that you can apply the flips and rotations to the input rules instead of the grid windows. This means you only have to screw around with the entirety of the permutation group on the square once.

The bad news is that, for the hashmaps to behave, extracting out the grid windows is still annoying and looks ugly, as does putting the result where it should be.

But that could be a flaw of using [bool; N^2] for windows instead of [[bool; N]; N].
But I've been raised on the former representation, so oh well.

- Tomash

Reply Return to messages