Taddeus Kroes 7 роки тому
батько
коміт
2ff2da5dc2
1 змінених файлів з 2 додано та 2 видалено
  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