There was an error while loading. Please reload this page.
1 parent c6aca6c commit d7f719dCopy full SHA for d7f719d
src/d17.js
@@ -45,6 +45,7 @@ function run(clayInput) {
45
flowWater(data, { ...cursor });
46
47
data.part1 = Object.values(data.filledByXY).filter(contents => contents === WATER || contents === WATER_FLOW).length;
48
+ data.part2 = Object.values(data.filledByXY).filter(contents => contents === WATER).length;
49
50
//printData(data);
51
0 commit comments