Event JSON
{
"id": "8a8e40f1a482976fd30902d59eb5439a8d21296d260bfb8a4773d5695b1d148c",
"pubkey": "66c4f1f6985d37a0af102d4ea77b96aaeffd446df41cc3ec00a49dafdde3b4d1",
"created_at": 1734029932,
"kind": 1,
"tags": [
[
"p",
"6de73d77013b4b188f1bb0dc7663204dc891ab52757a5b757b702e0cfdd6c51f",
"wss://relay.mostr.pub"
],
[
"p",
"a165e2c61e5bc7612f4fe5f5f08470b16d325f295e0b8030676818209fdd9b84",
"wss://relay.mostr.pub"
],
[
"e",
"83cd10633550426550fa1eec7e1fe14717b6b13766bcdd523fcab1534ce2a667",
"wss://relay.mostr.pub",
"reply"
],
[
"content-warning",
"aoc day 12 spoilers"
],
[
"proxy",
"https://talk.marq42.xyz/notes/a1p8yoeiloan2jyv",
"activitypub"
]
],
"content": "nostr:nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpqdhnn6acp8d933rcmkrw8vceqfhyfr26jw4a9katmwqhqelwkc50swqrcc0 i basically just use the perimeter calculating code, but only add a new side, if the edge doesn't continue going to the left, basically\n\n\nlet outer1 = grid[vec + dir];\nlet inner1 = grid[vec];\nif outer1 != inner1 {\n let rotated_dir = dir.rotate();\n let outer2 = grid[vec + dir + rotated_dir];\n let inner2 = grid[vec + rotated_dir];\n\n if !(inner1 == inner2 \u0026\u0026 outer2 != inner2) {\n perimeters[region] += 1;\n }\n}",
"sig": "855aa5d7e9b643533489564dc5e4ab58808ade32b1c467f3e6c9faeeae0e431f4c59d499597b25291a2fbad10ea2204bf7a514c3e12797a350c84849708e2b72"
}