diff --git a/day22.swift b/day22.swift index a27b374..2bc5051 100644 --- a/day22.swift +++ b/day22.swift @@ -31,19 +31,35 @@ struct Day22: Puzzle { let firstY = ySteps.removeFirst() let firstZ = zSteps.removeFirst() + var part1 = 0 var part2 = 0 var x0 = firstX for x in xSteps { let possibleX = cubes.filter { $0.xRange.overlaps(x0..