Pier-Luc Brault on Nostr: Part 2 really shouldn't have taken me so long, but unfortunately I originally ...
Part 2 really shouldn't have taken me so long, but unfortunately I originally misunderstood the explanations. I was laying in bed last night when I got that the red tiles are the ordered points of a polygon! Finally put together a solution using a Python library called Shapely. Might prove handy for a "Programming for science" class I will be teaching next semester!
https://github.com/plbrault/advent-of-code-2025/blob/main/09.py#AdventOfCode
Published at
2025-12-11 00:30:29 UTCEvent JSON
{
"id": "3f0240647e300d1ca2af5c56a12200a3790741d6f7e89cec07d54e309f018eef",
"pubkey": "9c8172860ebd8ac3c164c3c33d2ad87798ea6e94a5f04d429d8b9c9dbac0a193",
"created_at": 1765413029,
"kind": 1,
"tags": [
[
"t",
"adventofcode"
],
[
"content-warning",
"Advent of Code Day 9"
],
[
"proxy",
"https://fosstodon.org/users/plbrault/statuses/115698108327852594",
"activitypub"
],
[
"client",
"Mostr",
"31990:6be38f8c63df7dbf84db7ec4a6e6fbbd8d19dca3b980efad18585c46f04b26f9:mostr",
"wss://relay.ditto.pub/"
]
],
"content": "Part 2 really shouldn't have taken me so long, but unfortunately I originally misunderstood the explanations. I was laying in bed last night when I got that the red tiles are the ordered points of a polygon! Finally put together a solution using a Python library called Shapely. Might prove handy for a \"Programming for science\" class I will be teaching next semester!\n\nhttps://github.com/plbrault/advent-of-code-2025/blob/main/09.py\n\n#AdventOfCode",
"sig": "3a9f11fa99088e1cba614b8d945ba65e3edb2918f6a759fb98a4ecdcf1cb56c45620bcec4e7bcc43bca796327739e957ccb1f7a9d402068595af796eb74eb9c1"
}