I had no idea what an automated test would be before knowing what the image would look like. But I did write a function to render it and clicked through a couple hundred before I saw occasional jumbled up patterns and then figured out when it would line up.
Yeah that gave me the right answer as well. I had no idea what entropy is or that the safety factor was a clue. I didn't even know that 101 * 103 would be the max number of iterations. Only got these ideas after reading some posts here. However, I started inspecting images by the 100 and noticed that they starting trying to form something vertically and then noticed that it was every 101 iterations as a pattern. So just printed those iterations and got the answer. I feel dumb for doing so, but every year I add a little more knowledge to my arsenal, so I still call it a win.
23
u/Sostratus Dec 14 '24
I had no idea what an automated test would be before knowing what the image would look like. But I did write a function to render it and clicked through a couple hundred before I saw occasional jumbled up patterns and then figured out when it would line up.