소스 검색

Change variable names

Taddeus Kroes 2 년 전
부모
커밋
ff2cc81634
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      2022/18_voxels.py

+ 2 - 2
2022/18_voxels.py

@@ -21,8 +21,8 @@ def exterior_surface(voxels):
     visit = list(outside)
     while visit:
         for nb in neighbors(*visit.pop()):
-            nx, ny, nz = nb
-            if -1 <= nx <= w and -1 <= ny <= h and -1 <= nz <= d \
+            x, y, z = nb
+            if -1 <= x <= w and -1 <= y <= h and -1 <= z <= d \
                     and nb not in outside and nb not in voxels:
                 outside.add(nb)
                 visit.append(nb)