Forráskód Böngészése

Change variable names

Taddeus Kroes 2 éve
szülő
commit
ff2cc81634
1 módosított fájl, 2 hozzáadás és 2 törlés
  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)