Explorar el Código

Day 17 cleanup

Taddeus Kroes hace 7 años
padre
commit
2ff2da5dc2
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      17_reservoir.py

+ 2 - 2
17_reservoir.py

@@ -69,8 +69,8 @@ def flow(grid, w):
 
                 # break condition above checks fow clay and water, but we only
                 # keep flowing through sand
-                lflow = not lwall and grid[left] == SAND
-                rflow = not rwall and grid[right] == SAND
+                lflow = grid[left] == SAND
+                rflow = grid[right] == SAND
 
                 if lflow and rflow:
                     # flow continues on both ends, fork