From d94ca60a363b468baa9936ce2a985e98ebce9b51 Mon Sep 17 00:00:00 2001 From: Joshua Seigler Date: Fri, 11 Dec 2020 06:18:51 +0000 Subject: [PATCH] Day 11, part one --- solutions/day11/solution.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/solutions/day11/solution.js b/solutions/day11/solution.js index a6d132d..61e79c7 100644 --- a/solutions/day11/solution.js +++ b/solutions/day11/solution.js @@ -45,7 +45,7 @@ function step (input) { return next } -function stabilize(input) { +function stabilize (input) { // console.log('\nInput\n--------') // draw(input) let rounds = 1; let old; let fresh = input @@ -61,7 +61,7 @@ function stabilize(input) { async function solveForFirstStar (input) { const stable = stabilize(input) - const filledSeats = stable.flat(2).filter(x => x=='#').length + const filledSeats = stable.flat(2).filter(x => x == '#').length report('Solution 1:', filledSeats) }