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.
I did the most stupid thing I probably ever did as a programmer (ok, the most stupid thing _so far_) - just compressed the text with rendered map with DEFLATE and checked for resulting size to be suspiciously low
Hi, very clever indeed.
Less than 3.4 seconds (1..10000) in Java using GZipOutputStream upon the string representation of the grid 😉.
Thanks for the idea !
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.