Skip to content

Commit 5c86edc

Browse files
authored
[2024/12] add a comment in sides()
1 parent c395ecd commit 5c86edc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

2024/12/script.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def sides(region: set[tuple]) -> int:
2828
fences = defaultdict(list)
2929
for pos in region:
3030
for n, d in Dir.map_nswe(neighbours(pos)).items():
31+
# no same-region neighbour in this direction, we found a fence
3132
if n not in region:
3233
fences[d].append(pos)
3334

0 commit comments

Comments
 (0)