Skip to content

Commit d7f719d

Browse files
author
Alberto Bastos
committed
Day 17 Part 2
1 parent c6aca6c commit d7f719d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/d17.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ function run(clayInput) {
4545
flowWater(data, { ...cursor });
4646

4747
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;
4849

4950
//printData(data);
5051

0 commit comments

Comments
 (0)